From 87a26c5bf169bafbee837e2323f24cfb07e35250 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 21 Dec 2021 14:41:23 +0100 Subject: Update --- indent/kotlin.vim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'indent/kotlin.vim') diff --git a/indent/kotlin.vim b/indent/kotlin.vim index 8fdb2f85..fd7e0cea 100644 --- a/indent/kotlin.vim +++ b/indent/kotlin.vim @@ -3,9 +3,10 @@ if polyglot#init#is_disabled(expand(':p'), 'kotlin', 'indent/kotlin.vim') endif " Vim indent file -" Language: Kotlin -" Maintainer: Alexander Udalov -" Latest Revision: 26 May 2019 +" Language: Kotlin +" Maintainer: Alexander Udalov +" URL: https://github.com/udalov/kotlin-vim +" Last Change: 7 November 2021 if exists('b:did_indent') finish @@ -49,11 +50,11 @@ function! GetKotlinIndent() let cur_close_brace = cur =~ '^\s*}.*$' if prev_open_paren && !cur_close_paren || prev_open_brace && !cur_close_brace - return prev_indent + &shiftwidth + return prev_indent + shiftwidth() endif if cur_close_paren && !prev_open_paren || cur_close_brace && !prev_open_brace - return prev_indent - &shiftwidth + return prev_indent - shiftwidth() endif return prev_indent -- cgit v1.2.3