Lot of optimisation, replace eglot with lsp-mode

This commit is contained in:
Zelong Kuang
2026-03-30 11:49:18 +11:00
parent e1374b0e88
commit a3468b833e
24 changed files with 311 additions and 179 deletions

View File

@@ -64,7 +64,7 @@
;; :hook (vertico-mode . vertico-posframe-mode))
(use-package vertico-multiform
:ensure nil
:straight nil
:hook (vertico-mode . vertico-multiform-mode)
:config
(defvar +vertico-transform-functions nil)
@@ -258,7 +258,7 @@
;; A few more useful configurations...
(use-package emacs
:ensure nil
:straight nil
:custom
;; TAB cycle if there are only few candidates
;; (completion-cycle-threshold 3)
@@ -290,8 +290,8 @@
(advice-add 'lsp-completion-at-point :around #'cape-wrap-noninterruptible)
(advice-add 'lsp-completion-at-point :around #'cape-wrap-nonexclusive)
(advice-add 'comint-completion-at-point :around #'cape-wrap-nonexclusive)
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
(advice-add 'eglot-completion-at-point :around #'cape-wrap-nonexclusive)
;; (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
;; (advice-add 'eglot-completion-at-point :around #'cape-wrap-nonexclusive)
(advice-add 'pcomplete-completions-at-point :around #'cape-wrap-nonexclusive))
;; (use-package yasnippet-capf