summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-02 00:28:00 +0100
committerw0rp <devw0rp@gmail.com>2017-07-02 10:58:18 +0100
commitb731bd77abca29064600c01ad8df7d7d1033fc7a (patch)
tree414aff0b9a7e1b196231a5f8359a4157f24644c6 /plugin
parent5b731f761f3d405e67398c167a1b9aa16b45e97c (diff)
downloadale-b731bd77abca29064600c01ad8df7d7d1033fc7a.zip
Get automatic completion with tsserver to work
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index a42eb50b..986cccc8 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -181,6 +181,11 @@ call ale#Set('maximum_file_size', 0)
" Remapping of linter problems.
call ale#Set('type_map', {})
+" Enable automatic completion with LSP servers and tsserver
+call ale#Set('completion_enabled', 0)
+call ale#Set('completion_delay', 300)
+call ale#Set('completion_max_suggestions', 20)
+
function! ALEInitAuGroups() abort
" This value used to be a Boolean as a Number, and is now a String.
let l:text_changed = '' . g:ale_lint_on_text_changed
@@ -313,6 +318,10 @@ if g:ale_set_balloons
call ale#balloon#Enable()
endif
+if g:ale_completion_enabled
+ call ale#completion#Enable()
+endif
+
" Define commands for moving through warnings and errors.
command! -bar ALEPrevious :call ale#loclist_jumping#Jump('before', 0)
command! -bar ALEPreviousWrap :call ale#loclist_jumping#Jump('before', 1)