LSP: add corfu support
corfu: add lsp support
This commit is contained in:
parent
f7bbb7c66c
commit
1edbeb7bfd
@ -607,10 +607,14 @@ Return nil if DIR is not in a hugo project at all."
|
|||||||
|
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode
|
||||||
:hook ((powershell-mode . 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
|
:commands lsp
|
||||||
:diminish lsp-lens-mode
|
: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...
|
;; broken snippets I don't care about...
|
||||||
(use-package yasnippet
|
(use-package yasnippet
|
||||||
|
Loading…
Reference in New Issue
Block a user