From a162644568cddc62bf0c6b4c252f409ad2ffc697 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Thu, 14 Jan 2021 10:52:20 -0500 Subject: [PATCH] Improve lsp-mode performance --- README.org | 9 ++++++--- init.el | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index 20647ee..317d186 100644 --- a/README.org +++ b/README.org @@ -463,7 +463,11 @@ https://emacs-lsp.github.io/lsp-mode/ #+begin_src emacs-lisp (use-package lsp-mode - :commands lsp) + :commands lsp + :config + (setq gc-cons-threshold 100000000 + lsp-completion-provider 'company-capf + lsp-idle-delay dotfiles/idle)) #+end_src https://emacs-lsp.github.io/lsp-ui/ @@ -490,8 +494,7 @@ http://company-mode.github.io/ #+begin_src emacs-lisp (use-package company-lsp :commands company-lsp - :custom (company-minimum-prefix-length 1) - (company-idle-delay dotfiles/idle)) + :custom (company-minimum-prefix-length 1)) #+end_src ** Python diff --git a/init.el b/init.el index 67ae6de..34f4745 100644 --- a/init.el +++ b/init.el @@ -185,7 +185,11 @@ :hook (org-mode . org-superstar-mode)) (use-package lsp-mode - :commands lsp) + :commands lsp + :config + (setq gc-cons-threshold 100000000 + lsp-completion-provider 'company-capf + lsp-idle-delay dotfiles/idle)) (use-package lsp-ui :commands lsp-ui-mode @@ -195,8 +199,7 @@ (use-package company-lsp :commands company-lsp - :custom (company-minimum-prefix-length 1) - (company-idle-delay dotfiles/idle)) + :custom (company-minimum-prefix-length 1)) (use-package python-mode :hook (python-mode . lsp)