Include snippets in lsp completion

This gives completion of snippets along with normal LSP completion,
similar to how the old company-lsp backend worked.
This commit is contained in:
James Ravn 2021-01-07 11:18:46 +00:00
parent da177d58c4
commit 573d14c264
No known key found for this signature in database
GPG key ID: 52C372C72159D6EE

View file

@ -1,6 +1,8 @@
;;; tools/lsp/+lsp.el -*- lexical-binding: t; -*-
(defvar +lsp-company-backends 'company-capf
(defvar +lsp-company-backends (if (featurep! :editor snippets)
'(:separate company-yasnippet company-capf)
'company-capf)
"The backends to prepend to `company-backends' in `lsp-mode' buffers.
Can be a list of backends; accepts any value `company-backends' accepts.")