mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 05:16:09 +00:00
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)
9fd1583c83
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -704,6 +704,9 @@ local extension = {
|
||||
nanorc = 'nanorc',
|
||||
ncf = 'ncf',
|
||||
nginx = 'nginx',
|
||||
nim = 'nim',
|
||||
nims = 'nim',
|
||||
nimble = 'nim',
|
||||
ninja = 'ninja',
|
||||
nix = 'nix',
|
||||
nqc = 'nqc',
|
||||
|
@@ -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'],
|
||||
|
Reference in New Issue
Block a user