Skip to content

Commit

Permalink
Configure lsp keymap and performance settings
Browse files Browse the repository at this point in the history
  • Loading branch information
regob committed Oct 16, 2024
1 parent 8ef834b commit bba5420
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
;; ----------------------------------------------------------------------------
Expand Down
6 changes: 5 additions & 1 deletion lisp/init-lsp.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bba5420

Please sign in to comment.