How to disable signs in a plugin window?
weynhamz opened this issue · 2 comments
I have both Nerdtree and Tagbar plugins intalled, the strange thing is that the sign column is showed in the Nerdtree plugin window but not in Tagbar plugin window. How can I disable the sign column in the Nerdtree plugin window?
You can either set g:quickfixsigns_blacklist_buffer or set the buffer-local variable b:noquickfixsigns in the Nerdtree window. I don't use Nerdtree so I cannot tell which solution is the better one.
Thank you.
The name of tagbar window is 'Tagbar' which match the default value of `g:quickfixsigns_blacklist_buffer', that's why the signs column is not shown in the tagbar window by defalut.
I have changed it to \(^__.*__$\)\|\(^NERD_tree_.*$\)\|\(^-MiniBufExplorer-$\)'
, now it looks good.
I used to set the following to prevent the signs be shown in nerdtree window, but this is just a work arround not the right way, the signs column got disabled after a very short of displaying.
autocmd BufEnter NERD_tree_* let g:quickfixsigns#marks#buffer = []
autocmd CursorHold NERD_tree_* let g:quickfixsigns#marks#buffer = []
The b:noquickfixsigns
has the same effect with g:quickfixsigns_blacklist_buffer
, they are both triggered at the same stage of the process, the difference is only for the configuration. g:quickfixsigns_backlist_buffer
is a central blacklist rule, but for b:noquickfixsings
, a configuration like autocmd BufEnter NERD_tree_* let b:noquickfixsigns=1
has to be set for every window we want the sings column not to be displayed.