Close #1162 - Implement completion support with LSP servers

This commit is contained in:
w0rp
2018-04-22 12:28:12 +01:00
parent 20241c87ef
commit d8a673515a
9 changed files with 455 additions and 19 deletions

View File

@@ -194,6 +194,14 @@ function! ale#linter#PreProcess(linter) abort
if !s:IsCallback(l:obj.project_root_callback)
throw '`project_root_callback` must be a callback for LSP linters'
endif
if has_key(a:linter, 'completion_filter')
let l:obj.completion_filter = a:linter.completion_filter
if !s:IsCallback(l:obj.completion_filter)
throw '`completion_filter` must be a callback'
endif
endif
endif
let l:obj.output_stream = get(a:linter, 'output_stream', 'stdout')