adjust code completion settings
- switch away from using tab to trigger completion. i find it annoying when & how tab is "overloaded" with completion and indentation. using ctrl+space for completion feels a bit more normal to me anyway. - turn on auto completion pop-up triggering
This commit is contained in:
parent
817a52b5cf
commit
b53d7bcc85
|
@ -17,15 +17,19 @@
|
||||||
|
|
||||||
(setq-default tab-width 4)
|
(setq-default tab-width 4)
|
||||||
(setq-default indent-tabs-mode t)
|
(setq-default indent-tabs-mode t)
|
||||||
|
(setq-default tab-always-indent t)
|
||||||
|
|
||||||
(use-package corfu
|
(use-package corfu
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook (after-init . global-corfu-mode)
|
:hook (after-init . global-corfu-mode)
|
||||||
:bind
|
;; :bind
|
||||||
( :map corfu-map
|
;; ( :map corfu-map
|
||||||
("<tab>" . corfu-complete))
|
;; ("<tab>" . corfu-complete))
|
||||||
:config
|
:config
|
||||||
(setq tab-always-indent 'complete)
|
;;(setq tab-always-indent 'complete)
|
||||||
|
(setq corfu-auto t)
|
||||||
|
(setq corfu-auto-delay 0.5)
|
||||||
|
(setq corfu-auto-prefix 2)
|
||||||
(setq corfu-preview-current nil)
|
(setq corfu-preview-current nil)
|
||||||
(setq corfu-min-width 20))
|
(setq corfu-min-width 20))
|
||||||
|
|
||||||
|
|
|
@ -39,3 +39,5 @@
|
||||||
(global-set-key (kbd "M-<f10>") #'menu-bar-mode)
|
(global-set-key (kbd "M-<f10>") #'menu-bar-mode)
|
||||||
|
|
||||||
(global-set-key (kbd "C-x C-k") #'kill-this-buffer)
|
(global-set-key (kbd "C-x C-k") #'kill-this-buffer)
|
||||||
|
|
||||||
|
(global-set-key (kbd "C-SPC") #'completion-at-point)
|
||||||
|
|
Loading…
Reference in a new issue