Replace intrusive lsp-ui docs/error info with explicit keybinds

This commit is contained in:
outfoxxed 2023-08-13 14:41:06 -07:00
parent 3038460c44
commit 5391a79d60
Signed by: outfoxxed
GPG Key ID: 4C88A185FB89301E
1 changed files with 7 additions and 3 deletions

10
init.el
View File

@ -219,7 +219,10 @@
(which-key-mode +1))
;; On the fly syntax checking
(use-package flycheck)
(use-package flycheck
:after evil
:config
(define-key evil-normal-state-map (kbd "SPC e") #'flycheck-list-errors))
;; Completions
(use-package company
@ -266,8 +269,8 @@
(use-package lsp-ui
:after lsp-mode
:init
(setq lsp-ui-doc-position 'at-point
lsp-ui-doc-delay 0.5)
(setq lsp-ui-doc-enable nil
lsp-ui-sideline-enable nil)
:config
(define-key lsp-ui-mode-map [remap xref-find-definitions] #'lsp-ui-peek-find-definitions)
(define-key lsp-ui-mode-map [remap xref-find-references] #'lsp-ui-peek-find-references)
@ -280,6 +283,7 @@
(define-key evil-normal-state-map (kbd "SPC l s q") #'lsp-workspace-shutdown)
(define-key evil-normal-state-map (kbd "SPC l s r") #'lsp-workspace-restart)
(define-key evil-normal-state-map (kbd "SPC l i") #'lsp-ui-doc-glance)
(define-key evil-normal-state-map (kbd "SPC d") #'lsp-describe-thing-at-point)
;; Controls inside references popup
(define-key lsp-ui-peek-mode-map (kbd "j") #'lsp-ui-peek--select-next)
(define-key lsp-ui-peek-mode-map (kbd "k") #'lsp-ui-peek--select-prev)