mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-25 09:41:03 +08:00
Added toggle for displaying symlink destination
This commit is contained in:
parent
32168889bd
commit
a4e1a80680
|
@ -719,6 +719,9 @@ the NERDTree. These settings should be set in your vimrc, using `:let`.
|
|||
|NERDTreeShowLineNumbers| Tells the NERDTree whether to display line
|
||||
numbers in the tree window.
|
||||
|
||||
|NERDTreeShowSymlinkDest| Tells the NERDTree whether to display symlinks
|
||||
destination path or display it as a normal node
|
||||
|
||||
|NERDTreeSortOrder| Tell the NERDTree how to sort the nodes in the
|
||||
tree.
|
||||
|
||||
|
|
|
@ -61,7 +61,8 @@ function! s:Path.cacheDisplayString() abort
|
|||
let self.cachedDisplayString = self.addDelimiter(self.cachedDisplayString) . ' {' . join(self._bookmarkNames) . '}'
|
||||
endif
|
||||
|
||||
if self.isSymLink
|
||||
" Show symlink destination if instructed to
|
||||
if self.isSymLink && g:NERDTreeShowSymlinkDest
|
||||
let self.cachedDisplayString = self.addDelimiter(self.cachedDisplayString) . ' -> ' . self.symLinkDest
|
||||
endif
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ let g:NERDTreeShowFiles = get(g:, 'NERDTreeShowFiles', 1
|
|||
let g:NERDTreeShowHidden = get(g:, 'NERDTreeShowHidden', 0)
|
||||
let g:NERDTreeShowLineNumbers = get(g:, 'NERDTreeShowLineNumbers', 0)
|
||||
let g:NERDTreeSortDirs = get(g:, 'NERDTreeSortDirs', 1)
|
||||
let g:NERDTreeShowSymlinkDest = get(g:, 'NERDTreeShowSymlinkDest', 1)
|
||||
|
||||
if !nerdtree#runningWindows() && !nerdtree#runningCygwin()
|
||||
let g:NERDTreeDirArrowExpandable = get(g:, 'NERDTreeDirArrowExpandable', '▸')
|
||||
|
|
Loading…
Reference in New Issue
Block a user