Emacs: Enable company-lsp
Alan Pearce alan@alanpearce.eu
Fri, 29 Nov 2019 15:35:55 +0100
2 files changed, 6 insertions(+), 1 deletions(-)
M user/emacs/.emacs.d/init.el → user/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.nix → user/settings/emacs.nix
@@ -47,6 +47,7 @@ basic-theme bash-completion caddyfile-mode company + company-lsp company-web company-tabnine counsel