Emacs: optimise lsp setup
Alan Pearce alan@alanpearce.eu
Thu, 27 Feb 2020 12:20:00 +0100
2 files changed, 2 insertions(+), 7 deletions(-)
M user/emacs/.emacs.d/init.el → user/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.nix → user/settings/emacs.nix
@@ -84,7 +84,6 @@ avy bash-completion caddyfile-mode company - company-lsp company-web company-tabnine counsel