mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
set up syntax highlighting even if highlighting rules already exist
This commit is contained in:
@@ -2183,7 +2183,7 @@ function! s:initNerdTreeInPlace(dir)
|
|||||||
call s:bindMappings()
|
call s:bindMappings()
|
||||||
setfiletype nerdtree
|
setfiletype nerdtree
|
||||||
" syntax highlighting
|
" syntax highlighting
|
||||||
if has("syntax") && exists("g:syntax_on") && !has("syntax_items")
|
if has("syntax") && exists("g:syntax_on")
|
||||||
call s:setupSyntaxHighlighting()
|
call s:setupSyntaxHighlighting()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -2416,7 +2416,7 @@ function! s:createTreeWin()
|
|||||||
call s:bindMappings()
|
call s:bindMappings()
|
||||||
setfiletype nerdtree
|
setfiletype nerdtree
|
||||||
" syntax highlighting
|
" syntax highlighting
|
||||||
if has("syntax") && exists("g:syntax_on") && !has("syntax_items")
|
if has("syntax") && exists("g:syntax_on")
|
||||||
call s:setupSyntaxHighlighting()
|
call s:setupSyntaxHighlighting()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user