set up syntax highlighting even if highlighting rules already exist
This commit is contained in:
parent
1acf6321a5
commit
c3a2f88b63
@ -2183,7 +2183,7 @@ function! s:initNerdTreeInPlace(dir)
|
||||
call s:bindMappings()
|
||||
setfiletype nerdtree
|
||||
" syntax highlighting
|
||||
if has("syntax") && exists("g:syntax_on") && !has("syntax_items")
|
||||
if has("syntax") && exists("g:syntax_on")
|
||||
call s:setupSyntaxHighlighting()
|
||||
endif
|
||||
|
||||
@ -2416,7 +2416,7 @@ function! s:createTreeWin()
|
||||
call s:bindMappings()
|
||||
setfiletype nerdtree
|
||||
" syntax highlighting
|
||||
if has("syntax") && exists("g:syntax_on") && !has("syntax_items")
|
||||
if has("syntax") && exists("g:syntax_on")
|
||||
call s:setupSyntaxHighlighting()
|
||||
endif
|
||||
endfunction
|
||||
|
Loading…
x
Reference in New Issue
Block a user