Only enable lsp keymap binding when +bindings
This commit is contained in:
parent
fb3c6f9d78
commit
4f3cf24afb
1 changed files with 8 additions and 5 deletions
|
@ -25,8 +25,10 @@ working on that project after closing the last buffer.")
|
|||
;; For `lsp-clients'
|
||||
(setq lsp-server-install-dir (concat doom-etc-dir "lsp/")
|
||||
lsp-intelephense-storage-path (concat doom-cache-dir "lsp-intelephense/"))
|
||||
;; Let doom bind the LSP keymap.
|
||||
(setq lsp-keymap-prefix nil)
|
||||
|
||||
(when (featurep! :config default +bindings)
|
||||
;; Let doom bind the lsp keymap.
|
||||
(setq lsp-keymap-prefix nil))
|
||||
|
||||
;; Disable LSP's superfluous, expensive and/or debatably unnecessary features.
|
||||
;; Some servers implement these poorly. Better to just rely on Emacs' native
|
||||
|
@ -101,9 +103,10 @@ This also logs the resolved project root, if found, so we know where we are."
|
|||
(lambda (it) (format "[%s]" (lsp--workspace-print it)))
|
||||
lsp--buffer-workspaces))))))
|
||||
|
||||
(when (featurep! :config default +bindings)
|
||||
(dolist (leader-key (list doom-leader-key doom-leader-alt-key))
|
||||
(let ((lsp-keymap-prefix (concat leader-key " c l")))
|
||||
(lsp-enable-which-key-integration)))
|
||||
(lsp-enable-which-key-integration))))
|
||||
|
||||
(add-hook! 'lsp-mode-hook
|
||||
(defun +lsp-init-company-h ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue