summaryrefslogtreecommitdiff
path: root/ftdetect
diff options
context:
space:
mode:
authorshikun <[email protected]>2021-09-21 15:02:15 +0800
committerGitHub <[email protected]>2021-09-21 09:02:15 +0200
commit9ec39484eb9b239ee2499bfd136cdbab1f4fbdfe (patch)
treeeb457fc401b5a0d75bc44439b876b3fd116a7d0e /ftdetect
parentfbfd8c1fc3d0df1e2169df64c2264de7e23a9105 (diff)
[Feature]: add basic `JSONC` support (#1535)
* feat: add jsonc support * fix(jsonc): drop jsonc filetype detection workaround in lsp for now
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/json.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/ftdetect/json.lua b/ftdetect/json.lua
new file mode 100644
index 00000000..9824e3e4
--- /dev/null
+++ b/ftdetect/json.lua
@@ -0,0 +1,3 @@
+vim.cmd [[
+ au BufRead,BufNewFile tsconfig.json set filetype=jsonc
+]]