diff --git a/common.nix b/common.nix index 276ec88..78d2977 100644 --- a/common.nix +++ b/common.nix @@ -116,6 +116,11 @@ " history file. let g:netrw_home = '$XDG_STATE_HOME/vim' + " Sublime settings files can have comments. + autocmd BufNewFile,BufRead *.sublime-settings set filetype=jsonc + " Most software that reads JSON with comments also accepts trailing commas. + autocmd FileType jsonc highlight link jsonTrailingCommaError Normal + set nowrap set hlsearch set tabstop=2