diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-09 21:00:49 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-06-09 21:00:49 +0200 |
commit | 26095dda91c169bf5e7f657d4ff52da1baab3e4c (patch) | |
tree | ba99d44bd4871bc9bff63bd3c0740becd7b585f1 /indent/nftables.vim | |
parent | dec65bafcafe295aeb5744f8a34ff5a1fd2cb1ef (diff) | |
download | vim-polyglot-26095dda91c169bf5e7f657d4ff52da1baab3e4c.tar.gz vim-polyglot-26095dda91c169bf5e7f657d4ff52da1baab3e4c.zip |
Update
Diffstat (limited to 'indent/nftables.vim')
-rw-r--r-- | indent/nftables.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/indent/nftables.vim b/indent/nftables.vim new file mode 100644 index 00000000..1a3e5876 --- /dev/null +++ b/indent/nftables.vim @@ -0,0 +1,21 @@ +if polyglot#init#is_disabled(expand('<sfile>:p'), 'nftables', 'indent/nftables.vim') + finish +endif + +" Only load this indent file when no other was loaded. +if exists('b:did_indent') + finish +endif +let b:did_indent = 1 + +setlocal cindent +setlocal cinoptions=L0,(0,Ws,J1,j1,+N +setlocal cinkeys=0{,0},!^F,o,O,0[,0] +" Don't think cinwords will actually do anything at all... never mind +setlocal cinwords=table,chain + +" Some preliminary settings +setlocal nolisp " Make sure lisp indenting doesn't supersede us +setlocal autoindent " indentexpr isn't much help otherwise +" Also do indentkeys, otherwise # gets shoved to column 0 :-/ +setlocal indentkeys=0{,0},!^F,o,O,0[,0] |