Closed w1zd closed 3 years ago
Can you give more info, I can not understand the issue.
Can you give more info, I can not understand the issue.
@tsony-tsonev Sorry, my bad.
NeoVim: v0.4.4 Nerdtree: 6.10
" Press ? for help │
│
.. (up a dir) │
</.config/nvim/ │¦
▸ autoload/ │*
▸ plugged/ │-
coc-settings.json │-
[✹ ]init.vim │-
init2.vim │-
keymaps.vim │-
[✹ ]plugins.vim │-
prettier.vim │-
README.md
Did you notice that square brackets []
appear around the status indicator? they even wrapped the file icon in.
I don't want them, and i set config g:NERDTreeGitStatusConcealBrackets
to hide them, but it doesn't work.
Is there any new variable to hide the square brackets? thanks.
you can experiment with these:
let g:WebDevIconsUnicodeDecorateFolderNodes = 1 "enables nodes icons
let g:DevIconsEnableFoldersOpenClose = 1 "enables different icon for expandable/not expandable icons
let g:WebDevIconsNerdTreeAfterGlyphPadding = ' ' "symbo after the icon
let g:WebDevIconsNerdTreeBeforeGlyphPadding = ' ' "symbol before the icon
let g:NERDTreeDirArrowExpandable = nr2char(8200) "sets expandable character to none - hides it
let g:NERDTreeDirArrowCollapsible = nr2char(8200) "sets collapsible character to none - hides it
augroup nerdtree
autocmd!
autocmd FileType nerdtree syntax clear NERDTreeFlags
autocmd FileType nerdtree syntax match hideBracketsInNerdTree "\]" contained conceal containedin=ALL
autocmd FileType nerdtree syntax match hideBracketsInNerdTree "\[" contained conceal containedin=ALL
autocmd FileType nerdtree setlocal conceallevel=3
autocmd FileType nerdtree setlocal concealcursor=nvic
augroup END
It works like a charm, thanks.
Conceal brackets not working with:
let g:NERDTreeGitStatusConcealBrackets = 1
.