Small emacs lsp updates

This commit is contained in:
jgrogan 2024-10-07 09:17:47 +01:00
parent dc8a304a56
commit 9f2968aff4
2 changed files with 15 additions and 5 deletions

View file

@ -14,6 +14,10 @@
(advice-add 'risky-local-variable-p :override #'ignore)
;; Increase buffers and whatnot for lsp-mode
(setq read-process-output-max (* 1024 1024)) ;; 1mb
(setq gc-cons-threshold 100000000)
(require 'jg-package)
;; Explicitly import the PATH from the shell on MacOS

View file

@ -23,7 +23,7 @@
:commands (lsp lsp-deferred)
:init
(setq lsp-diagnostic-package :none)
(setq lsp-keymap-prefix "C-c l") ;; Or 'C-l', 's-l'
(setq lsp-keymap-prefix "C-c l") ;; Or 'C-l', 's-l
:config
(lsp-enable-which-key-integration t)
)
@ -42,13 +42,17 @@
(use-package lsp-ui
:hook (lsp-mode . lsp-ui-mode)
:custom
(lsp-ui-doc-position 'bottom))
(lsp-ui-doc-position 'bottom)
:commands lsp-ui-mode)
(use-package lsp-treemacs
:after lsp)
:after lsp
:commands lsp-treemacs-errors-list
)
(use-package lsp-ivy
:after lsp)
:after lsp
:commands lsp-ivy-workspace-symbol)
(use-package cmake-mode)
@ -65,7 +69,9 @@
;; (dap-python-setup) ;; Automatically installs Node debug adapter if needed
)
(use-package typescript-mode)
(use-package typescript-mode
:hook (typescript-mode . lsp-deferred)
)
(use-package python-mode
:ensure nil