Fix indentation rule for nix.kak
This commit is contained in:
parent
1d68f8dab9
commit
05e8eaac68
|
@ -109,6 +109,8 @@ define-command -hidden nix-indent-on-new-line %<
|
||||||
try %{ execute-keys -draft k : nix-trim-indent <ret> }
|
try %{ execute-keys -draft k : nix-trim-indent <ret> }
|
||||||
# indent after lines beginning / ending with opener token
|
# indent after lines beginning / ending with opener token
|
||||||
try %_ execute-keys -draft k <a-x> <a-k> ^\h*[[{]|[[{]$ <ret> j <a-gt> _
|
try %_ execute-keys -draft k <a-x> <a-k> ^\h*[[{]|[[{]$ <ret> j <a-gt> _
|
||||||
|
# deindent closer token(s) when after cursor
|
||||||
|
try %_ execute-keys -draft <a-x> <a-k>^\h*[}\]]+\h*$<ret> hm <a-S> 1<a-&> _
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user