all repos — nixfiles @ 81bdc806d609d084356c824f1659fa825a2fa5d2

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

Emacs: Enable company-lsp
Alan Pearce alan@alanpearce.eu
Fri, 29 Nov 2019 15:35:55 +0100
commit

81bdc806d609d084356c824f1659fa825a2fa5d2

parent

49070269e914f9365766a2c2c1a889e11fbb2ee9

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

jump to
M user/emacs/.emacs.d/init.eluser/emacs/.emacs.d/init.el
@@ -472,6 +472,10 @@ "TAB" #'company-indent-or-complete-common)) 
 ;; (use-package all-the-icons)
 
+(use-package company-lsp
+  :config (progn
+            (add-to-list 'company-backends #'company-lsp)))
+
 (eval-when-compile (require 'subr-x))
 (eval-and-compile
   (defun company-tabnine-load-path ()
@@ -479,7 +483,7 @@ (string-trim-right (shell-command-to-string "ghq list -p company-tabnine")))) 
 (use-package company-tabnine
   :commands (company-tabnine)
-  :after (company)
+  :after (company-lsp)
   :load-path (lambda () (list (company-tabnine-load-path)))
   :custom ((company-tabnine-binaries-folder "~/.local/tabnine"))
   :general ("<M-tab>" #'company-tabnine-call-other-backends
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -47,6 +47,7 @@ basic-theme       bash-completion
       caddyfile-mode
       company
+      company-lsp
       company-web
       company-tabnine
       counsel