mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 15:18:23 +08:00
Add g:NERDTreeFindResolveSymlinks for NERDTreeFind
This commit is contained in:
parent
f3a4d8eaa8
commit
7928d9f448
|
@ -309,7 +309,9 @@ function! s:findAndRevealPath(pathStr) abort
|
||||||
endif
|
endif
|
||||||
|
|
||||||
try
|
try
|
||||||
let l:pathStr = g:NERDTreePath.Resolve(l:pathStr)
|
if g:NERDTreeFindResolveSymlinks
|
||||||
|
let l:pathStr = g:NERDTreePath.Resolve(l:pathStr)
|
||||||
|
endif
|
||||||
let l:pathObj = g:NERDTreePath.New(l:pathStr)
|
let l:pathObj = g:NERDTreePath.New(l:pathStr)
|
||||||
catch /^NERDTree.InvalidArgumentsError/
|
catch /^NERDTree.InvalidArgumentsError/
|
||||||
call nerdtree#echoWarning('invalid path')
|
call nerdtree#echoWarning('invalid path')
|
||||||
|
|
|
@ -54,7 +54,7 @@ let g:NERDTreeShowHidden = get(g:, 'NERDTreeShowHidden', 0
|
||||||
let g:NERDTreeShowLineNumbers = get(g:, 'NERDTreeShowLineNumbers', 0)
|
let g:NERDTreeShowLineNumbers = get(g:, 'NERDTreeShowLineNumbers', 0)
|
||||||
let g:NERDTreeSortDirs = get(g:, 'NERDTreeSortDirs', 1)
|
let g:NERDTreeSortDirs = get(g:, 'NERDTreeSortDirs', 1)
|
||||||
let g:NERDTreeFileLines = get(g:, 'NERDTreeFileLines', 0)
|
let g:NERDTreeFileLines = get(g:, 'NERDTreeFileLines', 0)
|
||||||
|
let g:NERDTreeFindResolveSymlinks = get(g:, 'NERDTreeFindResolveSymlinks', 1)
|
||||||
|
|
||||||
if !nerdtree#runningWindows() && !nerdtree#runningCygwin()
|
if !nerdtree#runningWindows() && !nerdtree#runningCygwin()
|
||||||
let g:NERDTreeDirArrowExpandable = get(g:, 'NERDTreeDirArrowExpandable', '▸')
|
let g:NERDTreeDirArrowExpandable = get(g:, 'NERDTreeDirArrowExpandable', '▸')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user