mirror of
https://github.com/neovim/neovim.git
synced 2026-03-31 21:02:11 +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',
|
||||
ncf = 'ncf',
|
||||
nginx = 'nginx',
|
||||
ncl = 'nickle',
|
||||
nim = 'nim',
|
||||
nims = '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'],
|
||||
\ 'netrc': ['.netrc'],
|
||||
\ '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'],
|
||||
\ 'ninja': ['file.ninja'],
|
||||
\ 'nix': ['file.nix'],
|
||||
|
||||
Reference in New Issue
Block a user