Improvements to autocompletion with eglot.

Add a function to toggle autocompletion and improve the
competion-at-point-functions when eglot is rinning using cape-capf-super.
This commit is contained in:
kj
2025-09-01 12:35:10 -03:00
parent a6b197b6a4
commit 709ca7fe27
4 changed files with 25 additions and 7 deletions

View File

@ -151,5 +151,13 @@ If PROJECT is not specified, assume current project root."
(apply #'< (mapcar (lambda (range) (- (cdr range) (car range)))
(list l1 l2)))))))))
(defun corfu-auto-toggle()
"Toggle corfu autocomplete."
(interactive)
(global-corfu-mode 0)
(setq corfu-auto (not corfu-auto))
(global-corfu-mode 1)
)
(provide 'init-functions)
;;; init-functions.el ends here.