turn off automatic lsp toolips, switch to be triggered via keybind
i'm only doing this because in non-graphical mode, lsp tooltips seem to have some weird issues, sometimes not working at all, sometimes resulting in "error while displaying tooltip" messages. switching them to be triggered on-demand via keybind seems to resolve all of this ... for now anyway
This commit is contained in:
parent
98a6295b6f
commit
fdebdb0932
|
@ -18,6 +18,10 @@
|
||||||
(remove-hook 'prog-mode-hook 'lsp-non-interactive)
|
(remove-hook 'prog-mode-hook 'lsp-non-interactive)
|
||||||
(message "Removing lsp hook from prog-modes"))
|
(message "Removing lsp hook from prog-modes"))
|
||||||
|
|
||||||
|
(defun gered/show-doc-at-point ()
|
||||||
|
(interactive)
|
||||||
|
(if lsp-mode (lsp-ui-doc-glance)))
|
||||||
|
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
|
@ -44,9 +48,13 @@
|
||||||
|
|
||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:ensure t
|
:ensure t
|
||||||
|
:config
|
||||||
|
(setq lsp-ui-doc-enable nil)
|
||||||
:commands lsp-ui)
|
:commands lsp-ui)
|
||||||
|
|
||||||
(use-package lsp-treemacs
|
(use-package lsp-treemacs
|
||||||
:ensure t
|
:ensure t
|
||||||
:after lsp-mode
|
:after lsp-mode
|
||||||
:commands lsp-treemacs-errors-list)
|
:commands lsp-treemacs-errors-list)
|
||||||
|
|
||||||
|
(global-set-key (kbd "M-i") #'gered/show-doc-at-point)
|
||||||
|
|
Loading…
Reference in a new issue