vim-patch:9.0.2131: not all nushell files detected (#26260)

Problem:  not all nushell files detected
Solution: use *.nu to detect nushell files

closes: vim/vim#13586

b9efc72c24

Co-authored-by: Daniel Buch Hansen <boogiewasthere@gmail.com>
This commit is contained in:
Christian Clason
2023-11-28 00:58:31 +01:00
committed by GitHub
parent 718053b7a9
commit a314703cf1
2 changed files with 2 additions and 3 deletions

View File

@@ -716,6 +716,7 @@ local extension = {
tr = 'nroff',
nsi = 'nsis',
nsh = 'nsis',
nu = 'nu',
obj = 'obj',
objdump = 'objdump',
cppobjdump = 'objdump',
@@ -1387,8 +1388,6 @@ local filename = {
Neomuttrc = 'neomuttrc',
['.netrc'] = 'netrc',
NEWS = detect.news,
['env.nu'] = 'nu',
['config.nu'] = 'nu',
['.ocamlinit'] = 'ocaml',
['.octaverc'] = 'octave',
octaverc = 'octave',

View File

@@ -454,7 +454,7 @@ func s:GetFilenameChecks() abort
\ 'nqc': ['file.nqc'],
\ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'],
\ 'nsis': ['file.nsi', 'file.nsh'],
\ 'nu': ['env.nu', 'config.nu'],
\ 'nu': ['file.nu'],
\ 'obj': ['file.obj'],
\ 'objdump': ['file.objdump', 'file.cppobjdump'],
\ 'obse': ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'],