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

View File

@ -238,6 +238,11 @@ g:neosnippet#data_directory *g:neosnippet#data_directory*
Default value is "$XDG_CACHE_HOME/neosnippet" or
expand("~/.cache/neosnippet"); the absolute path of it.
*b:neosnippet_disable_snippet_triggers*
b:neosnippet_disable_snippet_triggers
Specifies the triggers which disables in the buffer.
It is useful to disable some snippet triggers.
------------------------------------------------------------------------------
KEY MAPPINGS *neosnippet-key-mappings*