;;; development/lsp.el -*- lexical-binding: t; -*- (after! lsp-ui (setq lsp-ui-doc-include-signature t ;; Show method signatures in docs lsp-ui-sideline-show-symbol t ;; Show symbols in the sideline lsp-ui-doc-show-with-cursor t ;; Show docs when cursor is on symbol lsp-ui-doc-max-height 30 ;; Increase doc height to show more info lsp-ui-sideline-show-hover t ;; Show hover information in sideline lsp-ui-doc-enable t ;; Enable documentation lsp-signature-auto-activate t ;; Show signature help automatically lsp-signature-render-documentation t)) ;; Include docs in signature help (after! eldoc (setq eldoc-echo-area-use-multiline-p t eldoc-echo-area-prefer-doc-buffer t)) (use-package! corfu-popupinfo :after corfu :hook (corfu-mode . corfu-popupinfo-mode) :custom (corfu-popupinfo-delay '(0.25 . 0.1)) ; Faster popup display (corfu-popupinfo-hide nil) ; Don't hide automatically ) ;; Configure Corfu for richer display (after! corfu (setq corfu-auto t ; Enable auto completion corfu-auto-prefix 2 ; Complete after 2 characters corfu-preview-current t ; Preview current candidate corfu-show-documentation t ; Show documentation in popup corfu-doc-max-height 20 ; Max height for doc popup corfu-doc-delay 0.2 ; Faster doc popup corfu-quit-no-match t) ; Quit if no match ;; Show more detailed annotations (setq corfu-show-annotations t corfu-annotate-max-width 50) ) (after! lsp-mode (setq lsp-completion-show-detail t ; Show method signatures lsp-completion-show-kind t ; Show completion item kind lsp-completion-show-label-description t ; Show more details in label ))