mirror of
https://github.com/amix/vimrc
synced 2025-07-08 01:25:00 +08:00
Add support for Elixir.
This commit is contained in:
15
sources_non_forked/vim-elixir/indent/elixir.vim
Normal file
15
sources_non_forked/vim-elixir/indent/elixir.vim
Normal file
@ -0,0 +1,15 @@
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
end
|
||||
let b:did_indent = 1
|
||||
|
||||
setlocal indentexpr=elixir#indent(v:lnum)
|
||||
|
||||
setlocal indentkeys+==after,=catch,=do,=else,=end,=rescue,
|
||||
setlocal indentkeys+=*<Return>,=->,=\|>,=<>,0},0],0),>
|
||||
|
||||
" TODO: @jbodah 2017-02-27: all operators should cause reindent when typed
|
||||
|
||||
function! elixir#indent(lnum)
|
||||
return elixir#indent#indent(a:lnum)
|
||||
endfunction
|
Reference in New Issue
Block a user