Add b:neosnippet_disable_snippet_triggers

This commit is contained in:
Shougo Matsushita
2015-10-02 06:32:37 +09:00
parent 9dcb239f11
commit bab27f8a95
2 changed files with 10 additions and 0 deletions

View File

@@ -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() "{{{