This commit is contained in:
Adam Stankiewicz
2021-06-27 10:07:29 +02:00
parent 4899585281
commit 4f5388350b
21 changed files with 77 additions and 43 deletions

View File

@@ -4,7 +4,7 @@ endif
" Vim indent file
" Language: Clojure
" Maintainer: Alex Vear <av@axvr.io>
" Maintainer: Alex Vear <alex@vear.uk>
" Former Maintainers: Sung Pae <self@sungpae.com>
" Meikel Brandmeyer <mb@kotka.de>
" URL: https://github.com/clojure-vim/clojure.vim

View File

@@ -49,10 +49,10 @@ function! GetZigIndent(lnum)
let prevLineNum = prevnonblank(a:lnum-1)
let prevLine = getline(prevLineNum)
" for lines that look line
" for lines that look like
" },
" };
" try treat them the same as a }
" try treating them the same as a }
if prevLine =~ '\v^\s*},$'
if currentLine =~ '\v^\s*};$' || currentLine =~ '\v^\s*}$'
return indent(prevLineNum) - 4