Restore formatoptions changed by pug

This commit is contained in:
leafOfTree
2020-01-09 17:51:35 +08:00
parent 74cd78ba77
commit 640a874b2f

View File

@@ -72,8 +72,9 @@ let b:javascript_indentexpr = &indentexpr
if s:use_pug
unlet! b:did_indent
let s:save_formatoptions = &formatoptions
runtime! indent/pug.vim
setlocal formatoptions-=r
let &formatoptions = s:save_formatoptions
endif
if s:use_sass