summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-05-03 11:17:41 +0100
committerw0rp <devw0rp@gmail.com>2018-05-03 11:17:41 +0100
commite2c33f2f6c58c55395dda825321dbd18997391e1 (patch)
tree72fbf6de99ddd4e4060e27d92353845ee4f32938 /doc
parente59cd6b7c0ba91c6dcfac5a6ce411e23af7a6252 (diff)
downloadale-e2c33f2f6c58c55395dda825321dbd18997391e1.zip
Add g:ale_completion_excluded_words for completion filtering
Diffstat (limited to 'doc')
-rw-r--r--doc/ale.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index f1e784ae..4a926386 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -631,6 +631,9 @@ delay for completion can be configured with |g:ale_completion_delay|. ALE will
only suggest so many possible matches for completion. The maximum number of
items can be controlled with |g:ale_completion_max_suggestions|.
+If you don't like some of the suggestions you see, you can filter them out
+with |g:ale_completion_excluded_words| or |b:ale_completion_excluded_words|.
+
-------------------------------------------------------------------------------
5.2 Go To Definition *ale-go-to-definition*
@@ -763,6 +766,24 @@ g:ale_completion_enabled *g:ale_completion_enabled*
See |ale-completion|
+g:ale_completion_excluded_words *g:ale_completion_excluded_words*
+ *b:ale_completion_excluded_words*
+ Type: |List|
+ Default: `[]`
+
+ This option can be set to a list of |String| values for "words" to exclude
+ from completion results, as in the words for |complete-items|. The strings
+ will be matched exactly in a case-sensitive manner. (|==#|)
+
+ This setting can be configured in ftplugin files with buffer variables, so
+ that different lists can be used for different filetypes. For example: >
+
+ " In ~/.vim/ftplugin/typescript.vim
+
+ " Don't suggest `it` or `describe` so we can use snippets for those words.
+ let b:ale_completion_excluded_words = ['it', 'describe']
+<
+
g:ale_completion_max_suggestions *g:ale_completion_max_suggestions*
Type: |Number|