mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 03:12:00 +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',
|
||||
NSS = 'natural',
|
||||
ncf = 'ncf',
|
||||
neon = 'neon',
|
||||
axs = 'netlinx',
|
||||
axi = 'netlinx',
|
||||
nginx = 'nginx',
|
||||
|
||||
@@ -577,6 +577,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'ncf': ['file.ncf'],
|
||||
\ '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'],
|
||||
\ 'neon': ['file.neon'],
|
||||
\ 'netlinx': ['file.axs', 'file.axi'],
|
||||
\ 'netrc': ['.netrc'],
|
||||
\ '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