From 05e8eaac68b800bd42a644e6ab9a671b1d6bda3e Mon Sep 17 00:00:00 2001 From: John Isom Date: Mon, 27 Jul 2020 21:58:48 -0600 Subject: [PATCH] Fix indentation rule for nix.kak --- rc/filetype/nix.kak | 2 ++ 1 file changed, 2 insertions(+) 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 _ > >