mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 01:51:52 +00:00
vim-patch:9.1.2059: filetype: Nickel files are not recognized
Problem: filetype: Nickel files are not recognized
Solution: Detect *.ncl files as nickel filetype
(Hoang Nguyen)
Reference:
- https://nickel-lang.org/getting-started/
- https://github.com/tweag/nickel/tree/master/examples
closes: vim/vim#19102
88f3ac34ea
Co-authored-by: Hoang Nguyen <folliekazetani@protonmail.com>
This commit is contained in:
@@ -846,6 +846,7 @@ local extension = {
|
|||||||
NSS = 'natural',
|
NSS = 'natural',
|
||||||
ncf = 'ncf',
|
ncf = 'ncf',
|
||||||
nginx = 'nginx',
|
nginx = 'nginx',
|
||||||
|
ncl = 'nickle',
|
||||||
nim = 'nim',
|
nim = 'nim',
|
||||||
nims = 'nim',
|
nims = 'nim',
|
||||||
nimble = 'nim',
|
nimble = 'nim',
|
||||||
|
|||||||
@@ -575,6 +575,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'neomuttrc': ['Neomuttrc', '.neomuttrc', '.neomuttrc-file', '/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc', 'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file', 'neomuttrc', 'neomuttrc-file'],
|
\ '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'],
|
\ 'netrc': ['.netrc'],
|
||||||
\ 'nginx': ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'],
|
\ 'nginx': ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'],
|
||||||
|
\ 'nickle': ['file.ncl'],
|
||||||
\ 'nim': ['file.nim', 'file.nims', 'file.nimble'],
|
\ 'nim': ['file.nim', 'file.nims', 'file.nimble'],
|
||||||
\ 'ninja': ['file.ninja'],
|
\ 'ninja': ['file.ninja'],
|
||||||
\ 'nix': ['file.nix'],
|
\ 'nix': ['file.nix'],
|
||||||
|
|||||||
Reference in New Issue
Block a user