Add b:neosnippet_disable_snippet_triggers
This commit is contained in:
parent
9dcb239f11
commit
bab27f8a95
@ -66,6 +66,11 @@ function! neosnippet#helpers#get_snippets() "{{{
|
|||||||
|
|
||||||
call filter(snippets, "cur_text =~# get(v:val, 'regexp', '')")
|
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
|
return snippets
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
function! neosnippet#helpers#get_completion_snippets() "{{{
|
function! neosnippet#helpers#get_completion_snippets() "{{{
|
||||||
|
@ -238,6 +238,11 @@ g:neosnippet#data_directory *g:neosnippet#data_directory*
|
|||||||
Default value is "$XDG_CACHE_HOME/neosnippet" or
|
Default value is "$XDG_CACHE_HOME/neosnippet" or
|
||||||
expand("~/.cache/neosnippet"); the absolute path of it.
|
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*
|
KEY MAPPINGS *neosnippet-key-mappings*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user