-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the ability to turn off directory arrows #1085
Conversation
Also improved some highlighting to make use of g:NERDTreeNodeDelimiter, which directly surrounds the filename. More of this to come as errors are tracked down and fixed in this file.
lib/nerdtree/tree_dir_node.vim
Outdated
let l:symbol = g:NERDTreeDirArrowExpandable | ||
endif | ||
|
||
let l:padding = g:NERDTreeDirArrowExpandable == '' ? '' : ' ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[vint] reported by reviewdog 🐶
Use robust operators ==#
or ==?
instead of ==
(see Google VimScript Style Guide (Matching))
lib/nerdtree/tree_file_node.vim
Outdated
|
||
if !self.path.isDirectory | ||
let treeParts = treeParts . ' ' | ||
if !self.path.isDirectory && g:NERDTreeDirArrowExpandable != '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[vint] reported by reviewdog 🐶
Use robust operators !=#
or !=?
instead of !=
(see Google VimScript Style Guide (Matching))
syntax/nerdtree.vim
Outdated
exec 'syn match NERDTreeDir #[^'.s:dirArrows.' ].*/#' | ||
syn match NERDTreeExecFile '^ .*\*\($\| \)' contains=NERDTreeRO,NERDTreeBookmark | ||
exec 'syn match NERDTreeFile #^[^"\.'.s:dirArrows.'] *[^'.s:dirArrows.']*# contains=NERDTreeLink,NERDTreeRO,NERDTreeBookmark,NERDTreeExecFile' | ||
if g:NERDTreeDirArrowExpandable != '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[vint] reported by reviewdog 🐶
Use robust operators !=#
or !=?
instead of !=
(see Google VimScript Style Guide (Matching))
Description of Changes
Closes #1064
Directory arrows can now be turned off. Formerly it was possible to turn the arrows into a non-breaking space, but this is different in that the entire tree is shifted to the left two character positions by removing the arrow and the space that follows it.
New Version Info
Author's Instructions
MAJOR.MINOR.PATCH
version number. Increment the:MAJOR
version when you make incompatible API changesMINOR
version when you add functionality in a backwards-compatible mannerPATCH
version when you make backwards-compatible bug fixesCollaborator's Instructions
git tag -a 3.1.4 -m "v3.1.4" && git push origin --tags