all repos — nixfiles @ e2c59a95f621160ddc8196d4887797ce1e9b915f

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

Emacs: optimise lsp setup
Alan Pearce alan@alanpearce.eu
Thu, 27 Feb 2020 12:20:00 +0100
commit

e2c59a95f621160ddc8196d4887797ce1e9b915f

parent

7c27ad62d62cdc246e9408d908a1e0b242bb17a9

2 files changed, 2 insertions(+), 7 deletions(-)

jump to
M user/emacs/.emacs.d/init.eluser/emacs/.emacs.d/init.el
@@ -502,11 +502,6 @@ (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)))
-
 (eval-when-compile (require 'subr-x))
 (eval-and-compile
   (defun company-tabnine-load-path ()
@@ -860,11 +855,12 @@ go-mode-hook             scss-mode-hook
             html-mode-hook
             haskell-mode-hook)
-          #'lsp)
+          #'lsp-deferred)
   :config (progn
             (require 'lsp-clients)
             (setq lsp-auto-guess-root t
                   lsp-auto-configure nil
+                  lsp-idle-delay 0.5
                   lsp-enable-symbol-highlighting nil)
             (add-to-list 'lsp-language-id-configuration '(js-mode . "javascript"))))
 
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -84,7 +84,6 @@ avy       bash-completion
       caddyfile-mode
       company
-      company-lsp
       company-web
       company-tabnine
       counsel