1
0
mirror of https://github.com/ViViDboarder/vim-settings.git synced 2025-01-07 08:07:36 +00:00
vim-settings/vim/after/indent/java.vim
2019-10-24 13:27:01 -07:00

12 lines
293 B
VimL

function! GetJavaIndent_improved()
let theIndent = GetJavaIndent()
let lnum = prevnonblank(v:lnum - 1)
let line = getline(lnum)
if line =~? '^\s*@.*$'
let theIndent = indent(lnum)
endif
return theIndent
endfunction
setlocal indentexpr=GetJavaIndent_improved()