diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-11-02 16:09:23 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2024-11-02 23:33:38 +0100 |
commit | db46b58569bc518967b73bf7d6ed92f8f5548c90 (patch) | |
tree | ccdfc1f74c72e483041db7fca228540b1c3f27a2 /runtime/ftplugin | |
parent | f5933d196b419901f96b0516b5039f3862eee27c (diff) | |
download | rneovim-db46b58569bc518967b73bf7d6ed92f8f5548c90.tar.gz rneovim-db46b58569bc518967b73bf7d6ed92f8f5548c90.tar.bz2 rneovim-db46b58569bc518967b73bf7d6ed92f8f5548c90.zip |
vim-patch:9.1.0826: filetype: sway files are not recognized
Problem: filetype: sway files are not recognized
Solution: detect '*.sw' files as sway filetype, include
a filetype plugin (Riley Bruins)
References:
https://github.com/FuelLabs/sway.
Comments taken from their syntax documentation. File extension taken
from the same documentation/GitHub's own recognition of these file types
closes: vim/vim#15973
https://github.com/vim/vim/commit/84b5b1c660beb2f9e27de70687e41d39a023ae81
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/sway.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/ftplugin/sway.vim b/runtime/ftplugin/sway.vim new file mode 100644 index 0000000000..35970b257c --- /dev/null +++ b/runtime/ftplugin/sway.vim @@ -0,0 +1,15 @@ +" Vim filetype plugin +" Language: Sway +" Maintainer: Riley Bruins <ribru17@gmail.com> +" Last Change: 2024 Nov 01 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setl commentstring=//\ %s +" From Rust comments +setl comments=s0:/*!,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,:// + +let b:undo_ftplugin = 'setl com< cms<' |