From ff7397b593f0604e24c6686f5bffcf18d7bedf05 Mon Sep 17 00:00:00 2001 From: tawsi-melek <34323926+tawsi-melek@users.github.com> Date: Mon, 5 Aug 2019 22:02:56 +0200 Subject: [PATCH] nim.kak: Add auto-indent after tuple and object Before: ```nim type MyType = tuple myint: int # This line needs to be indented manually ``` After: ```nim type MyType = tuple myint: int # Lines after 'tuple' are now indented automatically ``` --- rc/filetype/nim.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/nim.kak b/rc/filetype/nim.kak index 1b9283cb..03ff61b5 100644 --- a/rc/filetype/nim.kak +++ b/rc/filetype/nim.kak @@ -110,8 +110,8 @@ def -hidden nim-indent-on-new-line %{ try %{ exec -draft \; K } # cleanup trailing whitespaces from previous line try %{ exec -draft k s \h+$ d } - # indent after line ending with type, import, export, const, let, var, ':' or '=' - try %{ exec -draft k x (:|=|const|let|var|import|export|type)$ j } + # indent after line ending with tuple, object, type, import, export, const, let, var, ':' or '=' + try %{ exec -draft k x (:|=|tuple|object|const|let|var|import|export|type)$ j } } }