LSP: add corfu support

corfu: add lsp support
This commit is contained in:
MitchMarq42 2022-12-09 10:33:38 -09:00
parent f7bbb7c66c
commit 1edbeb7bfd

View File

@ -607,10 +607,14 @@ Return nil if DIR is not in a hugo project at all."
(use-package lsp-mode
:hook ((powershell-mode . lsp-mode)
(lsp-mode . lsp-enable-which-key-integration))
(lsp-mode . lsp-enable-which-key-integration)
(lsp-completion-mode . corfu/lsp-mode-setup-completion))
:commands lsp
:diminish lsp-lens-mode
:custom (lsp-completion-provider :none))
:custom (lsp-completion-provider :none)
:init (defun corfu/lsp-mode-setup-completion ()
(setf (alist-get 'styles (alist-get 'lsp-capf completion-category-defaults))
'(flex))))
;; broken snippets I don't care about...
(use-package yasnippet