diff options
author | Alan Pearce | 2019-11-29 15:35:55 +0100 |
---|---|---|
committer | Alan Pearce | 2019-11-29 15:35:55 +0100 |
commit | 81bdc806d609d084356c824f1659fa825a2fa5d2 (patch) | |
tree | 7f6ec41b19ef04699d9dc1ed4c0bb9cd74238cbc | |
parent | 49070269e914f9365766a2c2c1a889e11fbb2ee9 (diff) | |
download | nixfiles-81bdc806d609d084356c824f1659fa825a2fa5d2.tar.lz nixfiles-81bdc806d609d084356c824f1659fa825a2fa5d2.tar.zst nixfiles-81bdc806d609d084356c824f1659fa825a2fa5d2.zip |
Emacs: Enable company-lsp
-rw-r--r-- | user/emacs/.emacs.d/init.el | 6 | ||||
-rw-r--r-- | user/settings/emacs.nix | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el index 268682a1..42490ff6 100644 --- a/user/emacs/.emacs.d/init.el +++ b/user/emacs/.emacs.d/init.el @@ -472,6 +472,10 @@ _p_rev _u_pper _=_: upper/lower _r_esolve ;; (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 @@ _p_rev _u_pper _=_: upper/lower _r_esolve (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 diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index 4b3fed1a..d27377bd 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -47,6 +47,7 @@ in bash-completion caddyfile-mode company + company-lsp company-web company-tabnine counsel |