diff options
-rw-r--r-- | .emacs.d/lisp/init-lsp.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-lsp.el b/.emacs.d/lisp/init-lsp.el index 75b98cf..fff9045 100644 --- a/.emacs.d/lisp/init-lsp.el +++ b/.emacs.d/lisp/init-lsp.el @@ -32,6 +32,10 @@ (defun my/lsp-mode-setup-completion () (setf (alist-get 'styles (alist-get 'lsp-capf completion-category-defaults)) '(orderless))) + (defun lsp--make-reference-params-exclude-declaration (orig &optional td-position exclude-declaration) + (funcall orig td-position t)) + + (advice-add 'lsp--make-reference-params :around 'lsp--make-reference-params-exclude-declaration) (if (eq system-type 'darwin) (setq lsp-keymap-prefix "s-l") (setq lsp-keymap-prefix "C-c C-l")) |