Add g:NERDTreeFindResolveSymlinks for NERDTreeFind

This commit is contained in:
Blinov Evgeniy 2024-03-16 15:04:19 +03:00
parent f3a4d8eaa8
commit 7928d9f448
2 changed files with 4 additions and 2 deletions

View File

@ -309,7 +309,9 @@ function! s:findAndRevealPath(pathStr) abort
endif
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)
catch /^NERDTree.InvalidArgumentsError/
call nerdtree#echoWarning('invalid path')

View File

@ -54,7 +54,7 @@ let g:NERDTreeShowHidden = get(g:, 'NERDTreeShowHidden', 0
let g:NERDTreeShowLineNumbers = get(g:, 'NERDTreeShowLineNumbers', 0)
let g:NERDTreeSortDirs = get(g:, 'NERDTreeSortDirs', 1)
let g:NERDTreeFileLines = get(g:, 'NERDTreeFileLines', 0)
let g:NERDTreeFindResolveSymlinks = get(g:, 'NERDTreeFindResolveSymlinks', 1)
if !nerdtree#runningWindows() && !nerdtree#runningCygwin()
let g:NERDTreeDirArrowExpandable = get(g:, 'NERDTreeDirArrowExpandable', '▸')