Skip to content

Commit

Permalink
#94 add guards to avoid using some standard indent functions in VF in…
Browse files Browse the repository at this point in the history
…dent

Those may have been disabled by another plugin
  • Loading branch information
neowit committed Feb 17, 2018
1 parent be9663a commit 6739ca9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions indent/visualforce.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@

silent! unlet b:did_indent
runtime indent/xml.vim
if !exists("*XmlIndentGet")
finish " looks like another plugin does something custom with XmlIndentGet
endif
let s:xmlIndentRef=function("XmlIndentGet")

silent! unlet b:did_indent
runtime indent/html.vim
if !exists("*HtmlIndent")
finish " looks like another plugin does something custom with HtmlIndent
endif
let s:htmlIndentRef=function("HtmlIndent")

silent! unlet b:did_indent
runtime indent/css.vim
if !exists("*GetCSSIndent")
finish " looks like another plugin does something custom with GetCSSIndent
endif
let s:cssIndentExpr=function("GetCSSIndent")

setlocal indentexpr=VFIndent()
Expand Down

0 comments on commit 6739ca9

Please sign in to comment.