Skip to content

Commit

Permalink
[nvim] detect vimspector configs as JSON files with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitmel committed May 2, 2023
1 parent b425cea commit b1401dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nvim/after/syntax/json.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
syntax match Comment +\/\/.\+$+
if get(g:, 'main_syntax', '') !=# 'jsonc'
syntax match Comment +\/\/.\+$+
endif

if hlexists('jsonCommentTodo')
syn clear jsonCommentTodo
Expand Down
2 changes: 2 additions & 0 deletions nvim/ftdetect/dotfiles.vim
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ autocmd BufNewFile,BufRead *.snippets setf snippets
autocmd BufNewFile,BufRead */etc/fonts/*.conf,*/fontconfig/*.conf setf xml

autocmd BufNewFile,BufRead */.clangd setf yaml

autocmd BufNewFile,BufRead */.vimspector.json setf jsonc

0 comments on commit b1401dc

Please sign in to comment.