Switch from corfu to company.
It seems corfu is causing problems with eglot: https://github.com/joaotavora/eglot/discussions/1127.
This commit is contained in:
parent
8975324e7c
commit
68139849f6
@ -8,15 +8,20 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
|
|
||||||
perc=$1
|
perc=$1
|
||||||
|
|
||||||
if [ $perc -gt 100 ]; then
|
if [ "$perc" -gt 100 ]; then
|
||||||
echo 0 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
|
echo 0 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||||
perc=100
|
|
||||||
else
|
else
|
||||||
echo 1 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
|
echo 1 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $perc -lt 50 ]; then
|
if [ "$perc" -ge 80 ]; then
|
||||||
echo "power" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
|
||||||
else
|
|
||||||
echo "performance" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
echo "performance" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
||||||
|
elif [ "$perc" -ge 60 ]; then
|
||||||
|
echo "balance_performance" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
||||||
|
elif [ "$perc" -ge 40 ]; then
|
||||||
|
echo "default" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
||||||
|
elif [ "$perc" -ge 20 ]; then
|
||||||
|
echo "balance_power" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
||||||
|
else
|
||||||
|
echo "power" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
|
||||||
fi
|
fi
|
||||||
|
@ -33,4 +33,14 @@
|
|||||||
:commands (consult-eglot-symbols)
|
:commands (consult-eglot-symbols)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(use-package company
|
||||||
|
:after eglot
|
||||||
|
:hook (eglot-managed-mode . company-mode)
|
||||||
|
:config
|
||||||
|
(setq company-backends '((company-capf)))
|
||||||
|
)
|
||||||
|
|
||||||
|
;; (use-package company-box
|
||||||
|
;; :hook (company-mode . company-box-mode))
|
||||||
|
|
||||||
(provide 'common-lsp)
|
(provide 'common-lsp)
|
||||||
|
@ -46,11 +46,11 @@
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package corfu
|
;; (use-package corfu
|
||||||
:commands (corfu-mode global-corfu-mode)
|
;; :commands (corfu-mode global-corfu-mode)
|
||||||
:custom
|
;; :custom
|
||||||
(corfu-auto t)
|
;; (corfu-auto t)
|
||||||
)
|
;; )
|
||||||
|
|
||||||
(use-package marginalia
|
(use-package marginalia
|
||||||
:config (marginalia-mode))
|
:config (marginalia-mode))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user