commit a314703cf1b9ccc654162c5d55b819aee66aa8b6
parent 718053b7a97c4e2fbaa6077d3c9f4dc7012c8aad
Author: Christian Clason <c.clason@uni-graz.at>
Date: Tue, 28 Nov 2023 00:58:31 +0100
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
https://github.com/vim/vim/commit/b9efc72c2432f2d2a633c12d3a5b9fc3efb7b6e7
Co-authored-by: Daniel Buch Hansen <boogiewasthere@gmail.com>
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
@@ -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',
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
@@ -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'],