Skip to content

Commit cef306f

Browse files
authored
settings (#603)
these don't seem to be very relevant when using indentexprs, and may override the indentation script, opinions on this are welcomed, and honestly I don't know exactly what effect these have. the clojure indent file and a few others included with vim has these options set to off
1 parent 3a20412 commit cef306f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

indent/javascript.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ let b:did_indent = 1
1212

1313
" Now, set up our indentation expression and keys that trigger it.
1414
setlocal indentexpr=GetJavascriptIndent()
15-
setlocal nolisp
15+
setlocal nolisp noautoindent nosmartindent
1616
setlocal indentkeys=0{,0},0),0],:,!^F,o,O,e
1717
setlocal cinoptions+=j1,J1
1818

19-
let b:undo_indent = 'setlocal indentexpr< indentkeys< cinoptions<'
19+
let b:undo_indent = 'setlocal indentexpr< smartindent< autoindent< indentkeys< cinoptions<'
2020

2121
" Only define the function once.
2222
if exists('*GetJavascriptIndent')

0 commit comments

Comments
 (0)