aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-12-25 11:41:36 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-12-25 13:38:45 +0100
commit01e1598072249011ac2cec7318559cea6179e509 (patch)
tree196b8bd59ad0c2655707ad20924ec889719ccd41 /runtime/lua
parentb51110f4a11af114401e626cd4c1f1aec23e81c5 (diff)
downloadrneovim-01e1598072249011ac2cec7318559cea6179e509.tar.gz
rneovim-01e1598072249011ac2cec7318559cea6179e509.tar.bz2
rneovim-01e1598072249011ac2cec7318559cea6179e509.zip
vim-patch:9.1.0960: filetype: hy history files are not recognized
Problem: filetype: hy history files are not recognized Solution: detect '*.hy', '.hy-history' files as hy filetype, detect '.lips_repl_history' files are scheme filetype (Wu, Zhenyu) closes: vim/vim#16298 https://github.com/vim/vim/commit/a32daed55933df49a7aed571cc6e400ae01c7976 Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/filetype.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 80d25fe515..2b5a201c0f 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -592,6 +592,7 @@ local extension = {
hw = detect.hw,
module = detect.hw,
pkg = detect.hw,
+ hy = 'hy',
iba = 'ibasic',
ibi = 'ibasic',
icn = 'icon',
@@ -1603,6 +1604,7 @@ local filename = {
['/etc/host.conf'] = 'hostconf',
['/etc/hosts.allow'] = 'hostsaccess',
['/etc/hosts.deny'] = 'hostsaccess',
+ ['.hy-history'] = 'hy',
['hyprland.conf'] = 'hyprlang',
['hyprpaper.conf'] = 'hyprlang',
['hypridle.conf'] = 'hyprlang',
@@ -1778,6 +1780,7 @@ local filename = {
['Rantfile'] = 'ruby',
Vagrantfile = 'ruby',
['smb.conf'] = 'samba',
+ ['.lips_repl_history'] = 'scheme',
screenrc = 'screen',
['.screenrc'] = 'screen',
['/etc/sensors3.conf'] = 'sensors',