diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-08-18 23:09:35 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-08-18 23:09:35 +0200 |
commit | e521ba3ae205b2c79df9030a3db767405caf0457 (patch) | |
tree | 931693221fcf94669bfa1f69ac4fe65eb48b4a20 /ftplugin | |
parent | ee4f51587d8e306b2d9a4b0067c572a447b34b60 (diff) | |
download | vim-polyglot-e521ba3ae205b2c79df9030a3db767405caf0457.tar.gz vim-polyglot-e521ba3ae205b2c79df9030a3db767405caf0457.zip |
Add fennel support, closes #514
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/fennel.vim | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ftplugin/fennel.vim b/ftplugin/fennel.vim new file mode 100644 index 00000000..1fba74f1 --- /dev/null +++ b/ftplugin/fennel.vim @@ -0,0 +1,30 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fennel') == -1 + +" Vim filetype plugin file +" Language: FENNEL +" Maintainer: Calvin Rose + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:cpo_save = &cpo +set cpo&vim + +"setlocal iskeyword+=!,_,%,?,-,*,!,+,/,=,<,>,.,:,$,^ +setlocal iskeyword=!,$,%,#,*,+,-,.,/,:,<,=,>,?,_,a-z,A-Z,48-57,128-247,124,126,38,94 + +" There will be false positives, but this is better than missing the whole set +" of user-defined def* definitions. +setlocal define=\\v[(/]def(ault)@!\\S* + +" Remove 't' from 'formatoptions' to avoid auto-wrapping code. +setlocal formatoptions-=t + +setlocal comments=n:; +setlocal commentstring=;\ %s + +let &cpo = s:cpo_save + +endif |