diff --git a/rc/filetype/nim.kak b/rc/filetype/nim.kak index 03ff61b5..a5dd3e3e 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 tuple, object, type, import, export, const, let, var, ':' or '=' - try %{ exec -draft k x (:|=|tuple|object|const|let|var|import|export|type)$ j } + # indent after line ending with enum, tuple, object, type, import, export, const, let, var, ':' or '=' + try %{ exec -draft k x (:|=|enum|tuple|object|const|let|var|import|export|type)$ j } } }