Skip to content

Commit 7e27411

Browse files
runtime(elixir): fix indentation (#13771)
Signed-off-by: George Guimarães <george.guimaraes@gmail.com> Signed-off-by: Mitchell Hanberg <mitch@mitchellhanberg.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent a03647a commit 7e27411

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

runtime/ftplugin/elixir.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Elixir filetype plugin
22
" Language: Elixir
33
" Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com>
4-
" Last Change: 2022 Sep 20
4+
" Last Change: 2023 Dec 26
55

66
if exists("b:did_ftplugin")
77
finish
@@ -27,6 +27,12 @@ setlocal shiftwidth=2 softtabstop=2 expandtab iskeyword+=!,?
2727
setlocal comments=:#
2828
setlocal commentstring=#\ %s
2929

30+
setlocal indentkeys=0#,!^F,o,O
31+
" Enable keys for blocks
32+
setlocal indentkeys+=0=after,0=catch,0=do,0=else,0=end,0=rescue
33+
" Enable keys that are usually the first keys in a line
34+
setlocal indentkeys+=0->,0\|>,0},0],0),>
35+
3036
let b:undo_ftplugin = 'setlocal sw< sts< et< isk< com< cms<'
3137

3238
let &cpo = s:save_cpo

0 commit comments

Comments
 (0)