Switch out company-mode for Corfu
This commit is contained in:
parent
1765f48196
commit
8e904aeed9
@ -26,6 +26,7 @@
|
|||||||
(add-hook 'prog-mode-hook #'display-line-numbers-mode)
|
(add-hook 'prog-mode-hook #'display-line-numbers-mode)
|
||||||
(add-hook 'text-mode-hook #'display-line-numbers-mode)
|
(add-hook 'text-mode-hook #'display-line-numbers-mode)
|
||||||
:custom
|
:custom
|
||||||
(require-final-newline t))
|
(require-final-newline t)
|
||||||
|
(tab-always-indent 'complete))
|
||||||
|
|
||||||
(provide 'init-defaults)
|
(provide 'init-defaults)
|
||||||
|
@ -2,18 +2,10 @@
|
|||||||
|
|
||||||
;; IDE features
|
;; IDE features
|
||||||
|
|
||||||
;; Company-mode provides inline autocompletion
|
;; Corfu-mode provides inline autocompletion
|
||||||
(use-package company
|
(use-package corfu
|
||||||
:hook (after-init . global-company-mode)
|
:init
|
||||||
:config
|
(global-corfu-mode))
|
||||||
(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))
|
|
||||||
|
|
||||||
;; Quick file overview for supported modes
|
;; Quick file overview for supported modes
|
||||||
(use-package imenu
|
(use-package imenu
|
||||||
|
Loading…
Reference in New Issue
Block a user