vimrc/sources_non_forked/vim-coffee-script/indent/litcoffee.vim

23 lines
336 B
VimL
Raw Normal View History

2017-03-07 17:04:28 +00:00
if exists('b:did_indent')
finish
endif
runtime! indent/coffee.vim
let b:did_indent = 1
setlocal indentexpr=GetLitCoffeeIndent()
if exists('*GetLitCoffeeIndent')
finish
endif
function GetLitCoffeeIndent()
if searchpair('^ \|\t', '', '$', 'bWnm') > 0
return GetCoffeeIndent(v:lnum)
else
return -1
endif
endfunc