diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-09-24 12:59:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-24 12:59:37 +0200 |
commit | f8b656c582c6f0d9cb35523ac2d2f3d0edbcd52b (patch) | |
tree | c2fcb0b22d42d0b6c20505c522a4761fe9fa621b | |
parent | caf5738fa9cc12fd448a9c0787a3ebf0c8e696e9 (diff) | |
download | rneovim-f8b656c582c6f0d9cb35523ac2d2f3d0edbcd52b.tar.gz rneovim-f8b656c582c6f0d9cb35523ac2d2f3d0edbcd52b.tar.bz2 rneovim-f8b656c582c6f0d9cb35523ac2d2f3d0edbcd52b.zip |
vim-patch:9.0.0566: Nim files are not recognized (#20317)
Problem: Nim files are not recognized.
Solution: Add patterns for Nim files. (Nbiba Bedis, closes vim/vim#11205)
https://github.com/vim/vim/commit/9fd1583c839c5e43b0d48ec815a79005a2364776
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | runtime/lua/vim/filetype.lua | 3 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index e2efaaa0ce..a78478ec9e 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1279,6 +1279,9 @@ au BufNewFile,BufRead .netrc setf netrc " Nginx au BufNewFile,BufRead *.nginx,nginx*.conf,*nginx.conf,*/etc/nginx/*,*/usr/local/nginx/conf/*,*/nginx/*.conf setf nginx +" Nim file +au BufNewFile,BufRead *.nim,*.nims,*.nimble setf nim + " Ninja file au BufNewFile,BufRead *.ninja setf ninja diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index c96ead323b..d8ede33dfa 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -704,6 +704,9 @@ local extension = { nanorc = 'nanorc', ncf = 'ncf', nginx = 'nginx', + nim = 'nim', + nims = 'nim', + nimble = 'nim', ninja = 'ninja', nix = 'nix', nqc = 'nqc', diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 2d71d9b1a6..3067fa439c 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -386,6 +386,7 @@ let s:filename_checks = { \ 'neomuttrc': ['Neomuttrc', '.neomuttrc', '.neomuttrc-file', '/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc', 'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file', 'neomuttrc', 'neomuttrc-file'], \ 'netrc': ['.netrc'], \ 'nginx': ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'], + \ 'nim': ['file.nim', 'file.nims', 'file.nimble'], \ 'ninja': ['file.ninja'], \ 'nix': ['file.nix'], \ 'nqc': ['file.nqc'], |