Implement the g:NERDTreeMarkBookmarks setting

The setting is self-explanatory. See the added documentation for further
details.
This commit is contained in:
Jason Franklin
2017-06-10 17:07:57 -04:00
parent a9ab90198b
commit 471a03c9d9
3 changed files with 11 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ function! s:Path.cacheDisplayString() abort
call add(self._bookmarkNames, i.name)
endif
endfor
if !empty(self._bookmarkNames)
if !empty(self._bookmarkNames) && g:NERDTreeMarkBookmarks == 1
let self.cachedDisplayString .= ' {' . join(self._bookmarkNames) . '}'
endif