aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/lua/vim/filetype.lua3
-rw-r--r--test/old/testdir/test_filetype.vim3
2 files changed, 4 insertions, 2 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index a1ce5f1edf..6dc0391404 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1155,6 +1155,8 @@ local extension = {
zut = 'zimbutempl',
zs = 'zserio',
zsh = 'zsh',
+ zunit = 'zsh',
+ ['zsh-theme'] = 'zsh',
vala = 'vala',
web = detect.web,
pl = detect.pl,
@@ -1573,6 +1575,7 @@ local filename = {
['.zshrc'] = 'zsh',
['.zprofile'] = 'zsh',
['.zcompdump'] = 'zsh',
+ ['.zsh_history'] = 'zsh',
['.zshenv'] = 'zsh',
['.zfbfmarks'] = 'zsh',
-- END FILENAME
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
index c0ab747274..3611fafbf2 100644
--- a/test/old/testdir/test_filetype.vim
+++ b/test/old/testdir/test_filetype.vim
@@ -750,8 +750,7 @@ func s:GetFilenameChecks() abort
\ 'zimbu': ['file.zu'],
\ 'zimbutempl': ['file.zut'],
\ 'zserio': ['file.zs'],
- \ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file', 'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file'],
- \
+ \ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', 'file.zsh-theme', 'file.zunit', '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zsh_history', '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file', 'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file'],
\ 'help': [$VIMRUNTIME . '/doc/help.txt'],
\ }
endfunc