From 573d14c264ac97069ed25e5957a78487d8e5e081 Mon Sep 17 00:00:00 2001 From: James Ravn Date: Thu, 7 Jan 2021 11:18:46 +0000 Subject: [PATCH] Include snippets in lsp completion This gives completion of snippets along with normal LSP completion, similar to how the old company-lsp backend worked. --- modules/tools/lsp/+lsp.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/tools/lsp/+lsp.el b/modules/tools/lsp/+lsp.el index 8504610c5..5aadd0c50 100644 --- a/modules/tools/lsp/+lsp.el +++ b/modules/tools/lsp/+lsp.el @@ -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.")