mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 10:14:20 +08:00
set up syntax highlighting even if highlighting rules already exist
This commit is contained in:
parent
bc2a628a10
commit
02b3cec827
|
@ -2275,7 +2275,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
|
||||
|
||||
|
@ -2522,7 +2522,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…
Reference in New Issue
Block a user