Switch out company-mode for Corfu

This commit is contained in:
Jeremy Dormitzer 2023-04-20 22:30:29 -04:00
parent 1765f48196
commit 8e904aeed9
2 changed files with 6 additions and 13 deletions

View File

@ -26,6 +26,7 @@
(add-hook 'prog-mode-hook #'display-line-numbers-mode)
(add-hook 'text-mode-hook #'display-line-numbers-mode)
:custom
(require-final-newline t))
(require-final-newline t)
(tab-always-indent 'complete))
(provide 'init-defaults)

View File

@ -2,18 +2,10 @@
;; IDE features
;; Company-mode provides inline autocompletion
(use-package company
:hook (after-init . global-company-mode)
:config
(setq tab-always-indent 'complete)
(evil-collection-company-setup)
(general-def company-active-map "RET" #'company-complete-selection)
:custom
(company-idle-delay 0.3)
:general
([remap indent-for-tab-command] #'company-indent-or-complete-common)
([remap c-indent-line-or-region] #'company-indent-or-complete-common))
;; Corfu-mode provides inline autocompletion
(use-package corfu
:init
(global-corfu-mode))
;; Quick file overview for supported modes
(use-package imenu