mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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
a32daed559
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:

committed by
Christian Clason

parent
b51110f4a1
commit
01e1598072
@@ -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',
|
||||
|
@@ -356,6 +356,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'htmlm4': ['file.html.m4'],
|
||||
\ 'httest': ['file.htt', 'file.htb'],
|
||||
\ 'hurl': ['file.hurl'],
|
||||
\ 'hy': ['file.hy', '.hy-history'],
|
||||
\ 'hyprlang': ['hyprlock.conf', 'hyprland.conf', 'hypridle.conf', 'hyprpaper.conf', '/hypr/foo.conf'],
|
||||
\ 'i3config': ['/home/user/.i3/config', '/home/user/.config/i3/config', '/etc/i3/config', '/etc/xdg/i3/config'],
|
||||
\ 'ibasic': ['file.iba', 'file.ibi'],
|
||||
@@ -668,7 +669,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'sather': ['file.sa'],
|
||||
\ 'sbt': ['file.sbt'],
|
||||
\ 'scala': ['file.scala'],
|
||||
\ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.stsg', 'any/local/share/supertux2/config'],
|
||||
\ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.stsg', 'any/local/share/supertux2/config', '.lips_repl_history'],
|
||||
\ 'scilab': ['file.sci', 'file.sce'],
|
||||
\ 'screen': ['.screenrc', 'screenrc'],
|
||||
\ 'scss': ['file.scss'],
|
||||
|
Reference in New Issue
Block a user