Prioritize company-capf over company-yasnippet

This ensures that when doing things like completing on `this.` inside classes, the class fields and methods are shown before the yasnippet snippets.
This commit is contained in:
Sævar Berg 2021-03-08 13:29:28 +01:00 committed by GitHub
parent cf44c43f41
commit 12cf59cf73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
;;; tools/lsp/+lsp.el -*- lexical-binding: t; -*-
(defvar +lsp-company-backends (if (featurep! :editor snippets)
'(:separate company-yasnippet company-capf)
'(:separate company-capf company-yasnippet)
'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.")