From a314703cf1b9ccc654162c5d55b819aee66aa8b6 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 28 Nov 2023 00:58:31 +0100 Subject: [PATCH] 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 --- runtime/lua/vim/filetype.lua | 3 +-- test/old/testdir/test_filetype.vim | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index cb2656d9ba..c6200f16bb 100644 --- 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 index f197039ec5..87044a06b5 100644 --- 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'],