diff --git a/init.el b/init.el index a7dc4b5..0eef208 100644 --- a/init.el +++ b/init.el @@ -94,6 +94,11 @@ ;; always ask before killing emacs (does not hold for emacsclient though) (setq confirm-kill-emacs 'yes-or-no-p) +;; some performance settings (partly for lsp-mode) +;; https://emacs-lsp.github.io/lsp-mode/page/performance/ +(setq gc-cons-threshold 100000000) +(setq read-process-output-max (* 1024 1024)) ;; 1mb + ;; ---------------------------------------------------------------------------- ;; Some "global" keymaps ;; ---------------------------------------------------------------------------- diff --git a/lisp/init-lsp.el b/lisp/init-lsp.el index 5da25d6..51894b6 100644 --- a/lisp/init-lsp.el +++ b/lisp/init-lsp.el @@ -8,11 +8,15 @@ :custom (lsp-enable-symbol-highlighting nil) (lsp-enable-on-type-formatting nil) - (lsp-keymap-prefix "C-c l") (lsp-headerline-breadcrumb-enable nil) + (lsp-keymap-prefix "C-c l") (lsp-completion-enable t) + (lsp-use-plists t) :config (require 'lsp-pyright) + (keymap-set lsp-mode-map "C-c l" lsp-command-map) + ;; show lsp keymap names when using which key + (lsp-enable-which-key-integration t) ) (use-package lsp-ui