mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
* evil: Text Object (l -> inner) and Evil-Surround * appearance: mode line (doom) and bufferline (built-in) * edit: vertico and marginalia
22 lines
624 B
EmacsLisp
22 lines
624 B
EmacsLisp
;;; init-edit.el
|
|
|
|
;; Company - Complete Anything
|
|
(use-package company
|
|
:ensure t
|
|
:hook (after-init . global-company-mode) ; 在启动后自动启用 global-company-mode
|
|
:bind (:map company-active-map ; TODO: Seems does not work
|
|
("C-n" . company-select-next)
|
|
("C-p" . company-select-previous))
|
|
:config
|
|
(setq company-minimum-prefix-length 1 ; 设置最短补全前缀
|
|
company-idle-delay 0.2)) ; 设置补全延迟(秒)
|
|
|
|
;; minibuffer 补全增强
|
|
(use-package vertico
|
|
:init
|
|
(vertico-mode))
|
|
|
|
;; 提供补全注解
|
|
(use-package marginalia
|
|
:init
|
|
(marginalia-mode))
|