Skip to content

Commit

Permalink
[nvim] add a JSON schema for PatchSteps
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitmel committed Nov 20, 2021
1 parent e5555f3 commit bbaec78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions nvim/coc-languages/json.vim
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
call extend(g:dotfiles_coc_extensions, {'coc-json': 1, 'coc-prettier': 1})
call extend(g:dotfiles_coc_filetypes, {'json': 1, 'json5': 1})

let g:coc_user_config['json.schemas'] = [
\ {
\ 'fileMatch': ['*.json.patch'],
\ 'url': 'https://raw.githubusercontent.com/dmitmel/ultimate-crosscode-typedefs/master/json-schemas/patch-steps.json'
\ },
\ ]
2 changes: 1 addition & 1 deletion nvim/ftdetect/dotfiles.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
augroup dotfilesfiletypedetect

autocmd BufNewFile,BufRead */assets/*/*.json.patch setf json
autocmd BufNewFile,BufRead */assets/*.json.patch setf json

autocmd BufNewFile,BufRead *.frag setf glsl

Expand Down

0 comments on commit bbaec78

Please sign in to comment.