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:
zeertzjq
2026-01-07 06:16:44 +08:00
parent 218ea9fff7
commit b075656279
2 changed files with 2 additions and 0 deletions

View File

@@ -846,6 +846,7 @@ local extension = {
NSS = 'natural',
ncf = 'ncf',
nginx = 'nginx',
ncl = 'nickle',
nim = 'nim',
nims = 'nim',
nimble = 'nim',

View File

@@ -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'],