From 87f4197f234ef838843f0df175d0c5834e58b76e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 17 Sep 2022 18:05:15 -0700 Subject: ref(completion): add more packages for completion Get LSP to work with cape and corfu for the completion. Change-Id: Id8f01b1dee77957ff5ba27ed471707b7b9c7dc93 --- emacs/custom/my-lsp.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'emacs/custom/my-lsp.el') diff --git a/emacs/custom/my-lsp.el b/emacs/custom/my-lsp.el index 0cb62bd..98c061a 100644 --- a/emacs/custom/my-lsp.el +++ b/emacs/custom/my-lsp.el @@ -22,6 +22,15 @@ (add-hook 'lsp-mode-hook #'lsp-ui-mode) +(require 'consult-lsp) +(define-key lsp-mode-map [remap xref-find-apropos] #'consult-lsp-symbols) + +(require 'lsp-completion) +(setq lsp-completion-provider :none) ;; I use corfu +(add-hook 'lsp-completion-mode-hook + (lambda () + (setf (alist-get 'lsp-capf completion-category-defaults) '((styles . (orderless flex)))))) + (provide 'my-lsp) ;;; my-lsp.el ends here -- cgit 1.4.1