mirror of
https://github.com/vim/vim
synced 2025-07-15 16:51:57 +00:00
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: #14803 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
4d7892bfb1
commit
5f1b115afd
1
.github/MAINTAINERS
vendored
1
.github/MAINTAINERS
vendored
@ -155,6 +155,7 @@ runtime/ftplugin/heex.vim @cvincent
|
||||
runtime/ftplugin/hgcommit.vim @k-takata
|
||||
runtime/ftplugin/hog.vim @wtfbbqhax
|
||||
runtime/ftplugin/html.vim @dkearns
|
||||
runtime/ftplugin/hyprlang.vim @ribru17
|
||||
runtime/ftplugin/i3config.vim @hiqua
|
||||
runtime/ftplugin/icon.vim @dkearns
|
||||
runtime/ftplugin/indent.vim @dkearns
|
||||
|
@ -1044,6 +1044,9 @@ au BufRead,BufNewFile *.hurl setf hurl
|
||||
" Hyper Builder
|
||||
au BufNewFile,BufRead *.hb setf hb
|
||||
|
||||
" Hyprlang
|
||||
au BufNewFile,BufRead hypr\(land\|paper\|idle\|lock\).conf setf hyprlang
|
||||
|
||||
" Httest
|
||||
au BufNewFile,BufRead *.htt,*.htb setf httest
|
||||
|
||||
|
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<'
|
@ -336,6 +336,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
htmlm4: ['file.html.m4'],
|
||||
httest: ['file.htt', 'file.htb'],
|
||||
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'],
|
||||
ibasic: ['file.iba', 'file.ibi'],
|
||||
icemenu: ['/.icewm/menu', 'any/.icewm/menu'],
|
||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
421,
|
||||
/**/
|
||||
420,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user