diff --git a/rc/filetype/nix.kak b/rc/filetype/nix.kak index 36137552..244c3bda 100644 --- a/rc/filetype/nix.kak +++ b/rc/filetype/nix.kak @@ -109,6 +109,8 @@ define-command -hidden nix-indent-on-new-line %< try %{ execute-keys -draft k : nix-trim-indent } # indent after lines beginning / ending with opener token try %_ execute-keys -draft k ^\h*[[{]|[[{]$ j _ + # deindent closer token(s) when after cursor + try %_ execute-keys -draft ^\h*[}\]]+\h*$ hm 1 _ > >