Enable corfu auto, adjust idle time delays

This commit is contained in:
Evie Litherland-Smith 2024-08-16 09:10:50 +01:00
parent 01585c6e45
commit ed1c1a3e0a

View file

@ -1165,8 +1165,10 @@ Configure email with iCalendar event support, to integrate with
([tab] . corfu-insert)) ([tab] . corfu-insert))
:custom :custom
(corfu-cycle t) (corfu-cycle t)
(corfu-auto nil) (corfu-auto t)
(corfu-preselect 'directory) (corfu-auto-delay 0.2)
(corfu-auto-prefix 3)
(corfu-preselect 'valid)
:config :config
(require 'corfu-history) (require 'corfu-history)
(when (require 'nerd-icons-corfu nil :noerror) (when (require 'nerd-icons-corfu nil :noerror)
@ -1319,11 +1321,10 @@ Configure email with iCalendar event support, to integrate with
(python-base-mode . (lambda () (if (executable-find "pylsp" t) (eglot-ensure)))) (python-base-mode . (lambda () (if (executable-find "pylsp" t) (eglot-ensure))))
(lua-mode . (lambda () (if (executable-find "lua-language-server" t) (eglot-ensure)))) (lua-mode . (lambda () (if (executable-find "lua-language-server" t) (eglot-ensure))))
((rust-ts-mode rust-mode) . (lambda () (if (executable-find "rust-analyzer" t) (eglot-ensure)))) ((rust-ts-mode rust-mode) . (lambda () (if (executable-find "rust-analyzer" t) (eglot-ensure))))
((js-base-mode typescript-ts-base-mode) . (lambda () (if (executable-find "typescript-language-server" t) (eglot-ensure)))) ((js-base-mode typescript-ts-base-mode) . (lambda () (if (executable-find "typescript-language-server" t) (eglot-ensure)))))
)
:custom :custom
(eglot-menu-string "lsp") (eglot-menu-string "lsp")
(eglot-send-changes-idle-time 1) (eglot-send-changes-idle-time 0.5)
(eglot-extend-to-xref t) (eglot-extend-to-xref t)
(eglot-autoshutdown t) (eglot-autoshutdown t)
(eglot-sync-connect nil) (eglot-sync-connect nil)
@ -1385,7 +1386,7 @@ Configure email with iCalendar event support, to integrate with
("C-c C-," . flymake-goto-prev-error)) ("C-c C-," . flymake-goto-prev-error))
:hook ((prog-mode yaml-ts-mode) . (lambda () (flymake-mode +1))) :hook ((prog-mode yaml-ts-mode) . (lambda () (flymake-mode +1)))
:custom :custom
(flymake-no-changes-timeout 1) (flymake-no-changes-timeout 0.5)
(flymake-show-diagnostics-at-end-of-line 'short)) (flymake-show-diagnostics-at-end-of-line 'short))
(add-to-list 'package-selected-packages 'flymake-yamllint) (add-to-list 'package-selected-packages 'flymake-yamllint)