tigersoldier / company-lsp

Company completion backend for lsp-mode
GNU General Public License v3.0
251 stars 26 forks source link

Use filterText for filtering candidates if available. #93

Closed tigersoldier closed 5 years ago

tigersoldier commented 5 years ago

Per spec filterText should be used for filtering when the server provides it. If it's not provided, label should be used.

Some language server such as clangd adds some prefix to labels, such as empty spaces. They don't work well with prefix-based filter since the additional prefix will never match the completion prefix.

Should fix #92 and may also help #79.