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:
parent
cf44c43f41
commit
12cf59cf73
1 changed files with 1 additions and 1 deletions
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue