Skip to content

Commit

Permalink
fix(emacs): lsp-ui-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Dec 19, 2024
1 parent e28ee35 commit 3f97328
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -810,16 +810,6 @@

(use-package yasnippet)

(use-package eldoc
:ensure nil
:custom
(eldoc-idle-delay 0)
(eldoc-display-functions '(eldoc-display-in-buffer))
:general
(general-def
:states '(normal)
"g h" #'eldoc))

(use-package lsp-mode
:init
(defun gg/setup-lsp-mode-capf ()
Expand Down Expand Up @@ -868,9 +858,9 @@
(lsp-completion-mode . gg/setup-lsp-mode-capf)
:custom
(lsp-headerline-breadcrumb-enable nil)
(lsp-eldoc-render-all t)
(lsp-inlay-hint-enable t)
(lsp-semantic-tokens-enable t)
(lsp-signature-render-documentation nil)
:config
(lsp-register-client
(make-lsp-client
Expand All @@ -890,7 +880,14 @@
:after lsp-mode
:hook (lsp-mode . lsp-ui-mode)
:custom
(lsp-ui-sideline-diagnostic-max-line-length 280))
(lsp-ui-doc-position 'at-point)
(lsp-ui-doc-include-signature t)
(lsp-ui-sideline-diagnostic-max-line-length 280)
:general
(general-def lsp-ui-mode-map
:states '(normal)
"g h" #'lsp-ui-doc-glance
"g H" #'lsp-describe-thing-at-point))

(use-package consult-lsp
:after lsp-mode
Expand Down

0 comments on commit 3f97328

Please sign in to comment.