Skip to content

Commit

Permalink
Support context menu entry filetype blacklist
Browse files Browse the repository at this point in the history
Entry like

`    \ [ "&Get Doc\t(YCM)", 'call YouCompleterShowPopup("GetDoc")', '', '-markdown' ],`

will not show on a `markdown` filetype buffer.
  • Loading branch information
roachsinai committed Apr 19, 2022
1 parent ba0c485 commit 68c7992
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/quickui/context.vim
Expand Up @@ -667,6 +667,10 @@ function! quickui#context#reduce_items(textlist)
let state = 0
else
for check in split(item[3], ',')
if '-'.&ft == check
break
endif

if &ft == check
let output += [item]
let state = 0
Expand Down

0 comments on commit 68c7992

Please sign in to comment.