clone url: git://git.m455.casa/fennel.vim
ftplugin/fennel.vim
1 | " Vim filetype plugin file |
2 | " Language: FENNEL |
3 | " Maintainer: Calvin Rose |
4 |
|
5 | if exists("b:did_ftplugin") |
6 | finish |
7 | endif |
8 | let b:did_ftplugin = 1 |
9 |
|
10 | let s:cpo_save = &cpo |
11 | set cpo&vim |
12 |
|
13 | "setlocal iskeyword+=!,_,%,?,-,*,!,+,/,=,<,>,.,:,$,^ |
14 | setlocal iskeyword=!,$,%,#,*,+,-,.,/,:,<,=,>,?,_,a-z,A-Z,48-57,128-247,124,126,38,94 |
15 |
|
16 | " There will be false positives, but this is better than missing the whole set |
17 | " of user-defined def* definitions. |
18 | setlocal define=\\v[(/]def(ault)@!\\S* |
19 |
|
20 | setlocal suffixesadd=.fnl |
21 |
|
22 | " Remove 't' from 'formatoptions' to avoid auto-wrapping code. |
23 | setlocal formatoptions-=t |
24 |
|
25 | setlocal comments=n:; |
26 | setlocal commentstring=;\ %s |
27 |
|
28 | let &cpo = s:cpo_save |