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

10
init.el
View file

@ -219,7 +219,10 @@
(which-key-mode +1)) (which-key-mode +1))
;; On the fly syntax checking ;; 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 ;; Completions
(use-package company (use-package company
@ -266,8 +269,8 @@
(use-package lsp-ui (use-package lsp-ui
:after lsp-mode :after lsp-mode
:init :init
(setq lsp-ui-doc-position 'at-point (setq lsp-ui-doc-enable nil
lsp-ui-doc-delay 0.5) lsp-ui-sideline-enable nil)
:config :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-definitions] #'lsp-ui-peek-find-definitions)
(define-key lsp-ui-mode-map [remap xref-find-references] #'lsp-ui-peek-find-references) (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 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 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 l i") #'lsp-ui-doc-glance)
(define-key evil-normal-state-map (kbd "SPC d") #'lsp-describe-thing-at-point)
;; Controls inside references popup ;; 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 "j") #'lsp-ui-peek--select-next)
(define-key lsp-ui-peek-mode-map (kbd "k") #'lsp-ui-peek--select-prev) (define-key lsp-ui-peek-mode-map (kbd "k") #'lsp-ui-peek--select-prev)