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:
@ -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.
|
||||
|
Reference in New Issue
Block a user