Skip to content

Commit

Permalink
vim-patch:9.0.2131: not all nushell files detected (neovim#26260)
Browse files Browse the repository at this point in the history
Problem:  not all nushell files detected
Solution: use *.nu to detect nushell files

closes: vim/vim#13586

vim/vim@b9efc72

Co-authored-by: Daniel Buch Hansen <[email protected]>
  • Loading branch information
clason and dbuch authored Nov 27, 2023
1 parent 718053b commit a314703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions runtime/lua/vim/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ local extension = {
tr = 'nroff',
nsi = 'nsis',
nsh = 'nsis',
nu = 'nu',
obj = 'obj',
objdump = 'objdump',
cppobjdump = 'objdump',
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion test/old/testdir/test_filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit a314703

Please sign in to comment.