From a3c7de499e6cdd1b3ed3fac3151c30d51384fe10 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 4 Sep 2012 10:43:44 +0900 Subject: [PATCH] add new option: jsx#complete_ignore_candidates to ignore needless. --- autoload/jsx.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/jsx.vim b/autoload/jsx.vim index e29956c..06ce80b 100644 --- a/autoload/jsx.vim +++ b/autoload/jsx.vim @@ -32,7 +32,9 @@ function! jsx#complete(findstart, base) "try let ret = system(command, input_content) sandbox let words = eval(ret) - let output = filter(words, 'stridx(v:val.word, a:base) == 0') + let output = filter( + \ filter(words, 'stridx(v:val.word, a:base) == 0'), + \ 'index(get(g:, "jsx#complete_ignore_candidates", []), v:val.word) == -1') "catch " let output = [] "endtry