all repos — nixfiles @ ed56c96521bd133362994151f915c5aa07f880e0

System and user configuration, managed by nix and home-manager

Emacs: re-add company-lsp

Sometimes, TabNine's LSP integration doesn't work. It's nice to have a fallback.
Alan Pearce alan@alanpearce.eu
Tue, 21 Apr 2020 14:56:41 +0200
commit

ed56c96521bd133362994151f915c5aa07f880e0

parent

b6c4ba49fa602242534288210351c9e582684b99

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -513,6 +513,11 @@ (use-package all-the-icons
   :config (setq all-the-icons-color-icons nil))
 
+(use-package company-lsp
+  :config (progn
+            (setq company-lsp-enable-snippet nil)
+            (add-to-list 'company-backends #'company-lsp)))
+
 (use-package company-tabnine
   :commands (company-tabnine)
   :after (company)
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -84,6 +84,7 @@ avy       bash-completion
       caddyfile-mode
       company
+      company-lsp
       company-web
       company-tabnine
       counsel