mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 19:35:37 +00:00
vim-patch:9.1.0421: filetype: hyprlang files are not recognized
Problem: filetype: hyprlang files are not recognized
Solution: recognize 'hypr{land,paper,idle,lock}.conf' files
as 'hyprlang' filetype, add hyprlang ftplugin
(Riley Bruins)
closes: vim/vim#14803
5f1b115afd
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
This commit is contained in:
13
runtime/ftplugin/hyprlang.vim
Normal file
13
runtime/ftplugin/hyprlang.vim
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: hyprlang
|
||||||
|
" Maintainer: ribru17 <ribru17@gmail.com>
|
||||||
|
" Last Change: 2024 May 18
|
||||||
|
|
||||||
|
if exists('b:did_ftplugin')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
setl comments=:# commentstring=#\ %s
|
||||||
|
|
||||||
|
let b:undo_ftplugin = 'setl com< cms<'
|
||||||
@@ -1431,6 +1431,10 @@ local filename = {
|
|||||||
['/etc/host.conf'] = 'hostconf',
|
['/etc/host.conf'] = 'hostconf',
|
||||||
['/etc/hosts.allow'] = 'hostsaccess',
|
['/etc/hosts.allow'] = 'hostsaccess',
|
||||||
['/etc/hosts.deny'] = 'hostsaccess',
|
['/etc/hosts.deny'] = 'hostsaccess',
|
||||||
|
['hyprland.conf'] = 'hyprlang',
|
||||||
|
['hyprpaper.conf'] = 'hyprlang',
|
||||||
|
['hypridle.conf'] = 'hyprlang',
|
||||||
|
['hyprlock.conf'] = 'hyprlang',
|
||||||
['/.icewm/menu'] = 'icemenu',
|
['/.icewm/menu'] = 'icemenu',
|
||||||
['.indent.pro'] = 'indent',
|
['.indent.pro'] = 'indent',
|
||||||
indentrc = 'indent',
|
indentrc = 'indent',
|
||||||
|
|||||||
@@ -337,6 +337,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'htmlm4': ['file.html.m4'],
|
\ 'htmlm4': ['file.html.m4'],
|
||||||
\ 'httest': ['file.htt', 'file.htb'],
|
\ 'httest': ['file.htt', 'file.htb'],
|
||||||
\ 'hurl': ['file.hurl'],
|
\ 'hurl': ['file.hurl'],
|
||||||
|
\ 'hyprlang': ['hyprlock.conf', 'hyprland.conf', 'hypridle.conf', 'hyprpaper.conf'],
|
||||||
\ 'i3config': ['/home/user/.i3/config', '/home/user/.config/i3/config', '/etc/i3/config', '/etc/xdg/i3/config'],
|
\ 'i3config': ['/home/user/.i3/config', '/home/user/.config/i3/config', '/etc/i3/config', '/etc/xdg/i3/config'],
|
||||||
\ 'ibasic': ['file.iba', 'file.ibi'],
|
\ 'ibasic': ['file.iba', 'file.ibi'],
|
||||||
\ 'icemenu': ['/.icewm/menu', 'any/.icewm/menu'],
|
\ 'icemenu': ['/.icewm/menu', 'any/.icewm/menu'],
|
||||||
|
|||||||
Reference in New Issue
Block a user