Replace lsp-mode with eglot
Some checks failed
/ Test config on 20 (push) Failing after 49s

This commit is contained in:
Maciej 2025-09-18 15:06:30 +03:00
parent f03cae68b3
commit 2ef1340e6c
Signed by: maciej
GPG key ID: 28243AF437E32F99
28 changed files with 140 additions and 220 deletions

View file

@ -57,19 +57,17 @@
#'cape-file
#'cape-keyword)))
(defun icejam-set-no-lsp-capfs ()
(defun icejam-set-no-eglot-capfs ()
"Set `completion-at-point-function` to non-LSP list."
(setq-local completion-at-point-functions
(list (cape-capf-super #'cape-dabbrev #'yasnippet-capf)
#'cape-file
#'cape-keyword)))
(defun icejam-set-lsp-capfs ()
(defun icejam-set-eglot-capfs ()
"Set `completion-at-point-function` to list where LSP is supported."
(declare-function lsp-completion-at-point 'lsp-mode)
(setq-local completion-at-point-functions
(list (cape-capf-super #'lsp-completion-at-point
#'yasnippet-capf)
(list (cape-capf-super #'yasnippet-capf #'eglot-completion-at-point)
#'cape-dabbrev
#'cape-file)))