From f993a9004bf49a1012eae9e21836666429e45c9b Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Thu, 29 Sep 2022 16:32:38 +0200 Subject: [PATCH 1/3] Adds which-key For full lsp unlimited POOOOOWWWAAAAAA --- .emacs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.emacs b/.emacs index ffbc640..e969289 100644 --- a/.emacs +++ b/.emacs @@ -183,6 +183,8 @@ (use-package flycheck) +(use-package which-key) + (use-package lsp-mode :config (yas-minor-mode) @@ -428,7 +430,7 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:family "UbuntuMono Nerd Font" :foundry "DAMA" :slant normal :weight normal :height 113 :width normal)))) - ) + '(lsp-ui-doc-background ((t (:background "#373B41"))))) ;; Local Variables: ;; vc-follow-symlinks: t ;; End: From e7010d9d06e486ec39df11e3db8a94287f955673 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Thu, 29 Sep 2022 16:54:57 +0200 Subject: [PATCH 2/3] emacs lsp-mode enhancements --- .config/fish/config.fish | 1 + .emacs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 9c28b21..c2d92e0 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -33,6 +33,7 @@ end alias emacs="emacs -nw" alias gemacs="/usr/bin/emacs" set -gx EDITOR "emacs" +set -gx LSP_USE_PLISTS "true" ################################################################################ # Deb maintainer stuff diff --git a/.emacs b/.emacs index e969289..f2a07de 100644 --- a/.emacs +++ b/.emacs @@ -1,5 +1,12 @@ + + ;(toggle-debug-on-error) (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") +;lsp performances +(setq gc-cons-threshold (* 100 1024 1024));; 100MB +(setq read-process-output-max (* 3 1024 1024));; 3MB + + (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. From bd4f9d080cebe4a6e070446afbd0f2ca76924a61 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Fri, 30 Sep 2022 15:36:39 +0200 Subject: [PATCH 3/3] no sideline diagnostics --- .emacs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.emacs b/.emacs index f2a07de..e653abe 100644 --- a/.emacs +++ b/.emacs @@ -217,7 +217,10 @@ (lsp-mode . lsp-enable-which-key-integration)) :commands (lsp lsp-deferred)) -(use-package lsp-ui) +(use-package lsp-ui + :config + (setq lsp-ui-sideline-show-diagnostics nil) + ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;