diff options
author | James Eapen <james.eapen@vai.org> | 2022-07-27 15:07:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-27 15:07:06 +0100 |
commit | 7abd1c6d8e777bde1700633bafc1a40be9e9c1aa (patch) | |
tree | 72682425e7f4a0581665a095978c897d8be0e233 /runtime | |
parent | 61021aa318ca4c4a6b0182ee93388b2e9b5eefba (diff) |
patch 9.0.0093: sway config files are recognized as i3configv9.0.0093
Problem: Sway config files are recognized as i3config.
Solution: Recognize swayconfig separately. (James Eapen, closes #10672)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index ae52604392..7ef6139708 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -859,9 +859,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 |