Set lsp-references-exclude-definition and remove workaround
This commit is contained in:
parent
8d8809f2b5
commit
fe64746983
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue