Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

Apply for json files as well #8

Closed
@gerazov

Description

@gerazov

It would be useful to add the option to apply this for *.json files as well, or at least document how to in the Readme.

I did it via including this in my init.vim as suggested here:

autocmd BufRead,BufNewFile *.json set filetype=jsonc

Activity

added a commit that references this issue on May 3, 2021
4414926
kevinoid

kevinoid commented on May 3, 2021

@kevinoid
Owner

Good suggestion @gerazov, thanks!

I'm hesitant to recommend using jsonc for all .json files at the moment (both to avoid confusing users about the JSON format and due to known bugs in jsonc). However, documenting how to apply jsonc to file patterns in general is a great idea!

I've created #10 with some docs. Perhaps people interested in applying jsonc to *.json can make the leap from the *.mycjson example? I'd appreciate your thoughts.

gerazov

gerazov commented on May 4, 2021

@gerazov
Author

Ok great - thanks 👍

I've seen that people use comments in .json on a regular basis nowadays so it would be very useful 😉

added a commit that references this issue on May 4, 2021
274d619
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @kevinoid@gerazov

      Issue actions

        Apply for json files as well · Issue #8 · kevinoid/vim-jsonc