Fix #1568 - Filter LSP completion results with the prefixes

This commit is contained in:
w0rp
2018-05-28 14:45:07 +01:00
parent cd0dc0a227
commit ef1ec5341f
2 changed files with 43 additions and 0 deletions

View File

@@ -296,6 +296,10 @@ function! ale#completion#ParseLSPCompletions(response) abort
\})
endfor
if has_key(l:info, 'prefix')
return ale#completion#Filter(l:buffer, l:results, l:info.prefix)
endif
return l:results
endfunction