Comments (5)
To make Vim treat all json files as jsonc:
augroup JsonToJsonc
autocmd! FileType json set filetype=jsonc
augroup END
Or you can use a modeline (:help modeline
) at the very top or bottom of an individual json file, to set the filetype to jsonc for only that file:
// vim: ft=jsonc
from coc-json.
The filetype need to be jsonc.
from coc-json.
To make Vim treat all json files as jsonc:
augroup JsonToJsonc autocmd! FileType json set filetype=jsonc augroup ENDOr you can use a modeline (
:help modeline
) at the very top or bottom of an individual json file, to set the filetype to jsonc for only that file:// vim: ft=jsonc
Thank you so much!!
Extremely helpful!
from coc-json.
The filetype need to be jsonc.
Sure.
"Can I please have an example of this configuration?"
What I mean is, what does this look like in .vimrc
or init.nvim
?
from coc-json.
There's https://github.com/neoclide/jsonc.vim which set jsonc filetype for file with .cjson
as extension.
from coc-json.
Related Issues (20)
- Unable to disable schema HOT 2
- Change format indent length? HOT 2
- json5 support HOT 1
- Get coc-json work in SpaceVim/neovim HOT 1
- how to change indentation HOT 1
- chrome extention manifest 3 not supported HOT 8
- Add support for `.hjson` and `.json5` types. HOT 7
- No schema completions for `tsconfig.json`
- It does not format Json when saving!! HOT 2
- coc-json deactivates coc-highlight color highlighting HOT 5
- Add a command like yaml.selectSchema HOT 2
- Bug: wrong type of `Lua.workspace.library` in JSON schema HOT 2
- Support scoped configurations HOT 1
- Error on activate extension coc-json HOT 2
- Getting strange warnings after upgrading to 1.7.0 HOT 1
- coc-json does not provide any diagnostics HOT 2
- format on save not supported? HOT 1
- What options are available for `json.execArgv`? HOT 1
- [feature] Share same json schemas HOT 1
- [feature] Update json schema automatically
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-json.