Add b:neosnippet_disable_snippet_triggers
This commit is contained in:
@@ -66,6 +66,11 @@ function! neosnippet#helpers#get_snippets() "{{{
|
||||
|
||||
call filter(snippets, "cur_text =~# get(v:val, 'regexp', '')")
|
||||
|
||||
if exists('b:neosnippet_disable_snippet_triggers')
|
||||
call filter(snippets,
|
||||
\ "index(b:neosnippet_disable_snippet_triggers, v:val.word) < 0")
|
||||
endif
|
||||
|
||||
return snippets
|
||||
endfunction"}}}
|
||||
function! neosnippet#helpers#get_completion_snippets() "{{{
|
||||
|
||||
Reference in New Issue
Block a user