perf(company,corfu): increase idle delay on macos

MacOS especially seems to struggle with either async process management
or low timer delays, so I turn down idle completion there.
This commit is contained in:
Henrik Lissner 2025-12-16 04:35:41 -05:00
parent 92f99d64dd
commit a457047943
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 8 additions and 2 deletions

View file

@ -11,7 +11,10 @@
company-tooltip-limit 14
company-tooltip-align-annotations t
company-require-match 'never
company-idle-delay 0.26
company-idle-delay
(if (featurep :system 'macos)
0.4 ; MacOS is slower, so go easy on it
0.26)
company-global-modes
'(not erc-mode
circe-mode

View file

@ -41,7 +41,10 @@ If any return non-nil, `corfu-auto' will not invoke as-you-type completion.")
:hook (doom-first-input . global-corfu-mode)
:config
(setq corfu-auto t
corfu-auto-delay 0.24
corfu-auto-delay
(if (featurep :system 'macos)
0.4 ; MacOS is slower, so go easy on it
0.24)
corfu-auto-prefix 2
global-corfu-modes
'((not erc-mode