mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 10:01:49 +00:00
vim-patch:9.2.0046: filetype: neon files are not recoginzed (#38049)
Problem: filetype: neon files are not recoginzed
Solution: Detect *.neon files as neon filetype
(przepompownia)
Reference:
https://doc.nette.org/en/neon/format
https://github.com/fpob/nette.vim
closes: vim/vim#19496
ddd90672f2
Co-authored-by: przepompownia <przepompownia@users.noreply.github.com>
This commit is contained in:
@@ -849,6 +849,7 @@ local extension = {
|
|||||||
NSP = 'natural',
|
NSP = 'natural',
|
||||||
NSS = 'natural',
|
NSS = 'natural',
|
||||||
ncf = 'ncf',
|
ncf = 'ncf',
|
||||||
|
neon = 'neon',
|
||||||
axs = 'netlinx',
|
axs = 'netlinx',
|
||||||
axi = 'netlinx',
|
axi = 'netlinx',
|
||||||
nginx = 'nginx',
|
nginx = 'nginx',
|
||||||
|
|||||||
@@ -577,6 +577,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'ncf': ['file.ncf'],
|
\ 'ncf': ['file.ncf'],
|
||||||
\ 'neomuttlog': ['/home/user/.neomuttdebug1'],
|
\ 'neomuttlog': ['/home/user/.neomuttdebug1'],
|
||||||
\ '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'],
|
||||||
|
\ 'neon': ['file.neon'],
|
||||||
\ 'netlinx': ['file.axs', 'file.axi'],
|
\ 'netlinx': ['file.axs', 'file.axi'],
|
||||||
\ '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'],
|
||||||
|
|||||||
Reference in New Issue
Block a user