aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-01-17 13:46:58 +0100
committerChristian Clason <ch.clason+github@icloud.com>2025-01-17 16:45:59 +0100
commit3530182ba491ba8663b40bdff0c044d74e89bb82 (patch)
tree1e4ff7126d4034a06feb4f88e1542c744bfebc02 /runtime/lua/vim
parent97d58553515552afbac2999409e9bbf9a338dfb0 (diff)
downloadrneovim-3530182ba491ba8663b40bdff0c044d74e89bb82.tar.gz
rneovim-3530182ba491ba8663b40bdff0c044d74e89bb82.tar.bz2
rneovim-3530182ba491ba8663b40bdff0c044d74e89bb82.zip
vim-patch:9.1.1026: filetype: swc configuration files are not recognized
Problem: filetype: swc configuration files are not recognized Solution: detect .swcrc files as json filetype (Marces Engel) References: https://swc.rs/docs/configuration/swcrc closes: vim/vim#16462 https://github.com/vim/vim/commit/3a738fccaaf6737c91641856ea00579dbe68bd4e Co-authored-by: Marces Engel <marces@facemurphy.com>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/filetype.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index e5ba3b1211..efc41269f8 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1636,6 +1636,7 @@ local filename = {
['.lintstagedrc'] = 'json',
['deno.lock'] = 'json',
['flake.lock'] = 'json',
+ ['.swcrc'] = 'json',
['.babelrc'] = 'jsonc',
['.eslintrc'] = 'jsonc',
['.hintrc'] = 'jsonc',