From 126f617be43e932dccd3a7d9774585990410e3db Mon Sep 17 00:00:00 2001 From: Rei Meliesie Date: Thu, 17 Sep 2026 12:17:36 +0200 Subject: [PATCH] Vim: recognise Sublime configs as JSONC, allow trailing commas in JSONC --- common.nix | 5 +++++ 1 file changed, 5 insertions(+) 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