diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-08-10 16:00:50 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-08-10 16:00:50 +0100 |
commit | fe64746983df9203a0966893f166027652171dbb (patch) | |
tree | d60da5660cd28ea815e281b105e7569dbc60af0c /.emacs.d | |
parent | 8d8809f2b587989b65055d80ab4518aa7b7a8b28 (diff) | |
download | dotfiles-fe64746983df9203a0966893f166027652171dbb.tar.gz |
Set lsp-references-exclude-definition and remove workaround
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/lisp/init-lsp.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/.emacs.d/lisp/init-lsp.el b/.emacs.d/lisp/init-lsp.el index fff9045..4fc51a3 100644 --- a/.emacs.d/lisp/init-lsp.el +++ b/.emacs.d/lisp/init-lsp.el @@ -32,10 +32,6 @@ (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")) @@ -51,6 +47,7 @@ lsp-modeline-diagnostics-enable nil lsp-treemacs-theme "Iconless" lsp-completion-provider :none ;; use corfu + lsp-references-exclude-definition t ;; user cider for indendation, completion and eldoc instead lsp-enable-indentation nil ;;lsp-completion-enable nil |