mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.0093: sway config files are recognized as i3config (#19545)
Problem: Sway config files are recognized as i3config.
Solution: Recognize swayconfig separately. (James Eapen, closes vim/vim#10672)
7abd1c6d8e
This commit is contained in:
parent
9b447c7ce5
commit
4c3104819b
@ -860,9 +860,13 @@ au BufNewFile,BufRead *.hb setf hb
|
||||
" Httest
|
||||
au BufNewFile,BufRead *.htt,*.htb setf httest
|
||||
|
||||
" i3 (and sway)
|
||||
au BufNewFile,BufRead */i3/config,*/sway/config setf i3config
|
||||
au BufNewFile,BufRead */.i3/config,*/.sway/config setf i3config
|
||||
" i3
|
||||
au BufNewFile,BufRead */i3/config setf i3config
|
||||
au BufNewFile,BufRead */.i3/config setf i3config
|
||||
|
||||
" sway
|
||||
au BufNewFile,BufRead */sway/config setf swayconfig
|
||||
au BufNewFile,BufRead */.sway/config setf swayconfig
|
||||
|
||||
" Icon
|
||||
au BufNewFile,BufRead *.icn setf icon
|
||||
|
@ -1384,10 +1384,6 @@ local filename = {
|
||||
['/etc/host.conf'] = 'hostconf',
|
||||
['/etc/hosts.allow'] = 'hostsaccess',
|
||||
['/etc/hosts.deny'] = 'hostsaccess',
|
||||
['/i3/config'] = 'i3config',
|
||||
['/sway/config'] = 'i3config',
|
||||
['/.sway/config'] = 'i3config',
|
||||
['/.i3/config'] = 'i3config',
|
||||
['/.icewm/menu'] = 'icemenu',
|
||||
['.indent.pro'] = 'indent',
|
||||
indentrc = 'indent',
|
||||
@ -1835,9 +1831,7 @@ local pattern = {
|
||||
['.*/etc/hosts%.allow'] = 'hostsaccess',
|
||||
['.*%.html%.m4'] = 'htmlm4',
|
||||
['.*/%.i3/config'] = 'i3config',
|
||||
['.*/sway/config'] = 'i3config',
|
||||
['.*/i3/config'] = 'i3config',
|
||||
['.*/%.sway/config'] = 'i3config',
|
||||
['.*/%.icewm/menu'] = 'icemenu',
|
||||
['.*/etc/initng/.*/.*%.i'] = 'initng',
|
||||
['JAM.*%..*'] = starsetf('jam'),
|
||||
@ -2076,6 +2070,8 @@ local pattern = {
|
||||
end,
|
||||
['.*/etc/sudoers'] = 'sudoers',
|
||||
['svn%-commit.*%.tmp'] = 'svn',
|
||||
['.*/sway/config'] = 'swayconfig',
|
||||
['.*/%.sway/config'] = 'swayconfig',
|
||||
['.*%.swift%.gyb'] = 'swiftgyb',
|
||||
['.*%.[Ss][Yy][Ss]'] = function(path, bufnr)
|
||||
return require('vim.filetype.detect').sys(bufnr)
|
||||
|
@ -534,6 +534,7 @@ let s:filename_checks = {
|
||||
\ 'svelte': ['file.svelte'],
|
||||
\ 'svg': ['file.svg'],
|
||||
\ 'svn': ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'],
|
||||
\ 'swayconfig': ['/home/user/.sway/config', '/home/user/.config/sway/config', '/etc/sway/config', '/etc/xdg/sway/config'],
|
||||
\ 'swift': ['file.swift'],
|
||||
\ 'swiftgyb': ['file.swift.gyb'],
|
||||
\ 'sysctl': ['/etc/sysctl.conf', '/etc/sysctl.d/file.conf', 'any/etc/sysctl.conf', 'any/etc/sysctl.d/file.conf'],
|
||||
|
Loading…
Reference in New Issue
Block a user