mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-05 01:17:46 +08:00
Close #1162 - Implement completion support with LSP servers
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user