Better completion
This commit is contained in:
11
.emacs
11
.emacs
@@ -151,6 +151,7 @@
|
|||||||
(setq vertico-cycle t)
|
(setq vertico-cycle t)
|
||||||
:config
|
:config
|
||||||
(vertico-reverse-mode)
|
(vertico-reverse-mode)
|
||||||
|
(keymap-set vertico-map "TAB" #'minibuffer-complete)
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Persist history over Emacs restarts. Vertico sorts by history position.
|
;; Persist history over Emacs restarts. Vertico sorts by history position.
|
||||||
@@ -165,9 +166,9 @@
|
|||||||
;; Configure a custom style dispatcher (see the Consult wiki)
|
;; Configure a custom style dispatcher (see the Consult wiki)
|
||||||
;; (setq orderless-style-dispatchers '(+orderless-consult-dispatch orderless-affix-dispatch)
|
;; (setq orderless-style-dispatchers '(+orderless-consult-dispatch orderless-affix-dispatch)
|
||||||
;; orderless-component-separator #'orderless-escapable-split-on-space)
|
;; orderless-component-separator #'orderless-escapable-split-on-space)
|
||||||
(setq completion-styles '(orderless basic)
|
(setq completion-styles '(partial-completion orderless basic)
|
||||||
completion-category-defaults nil
|
;;completion-category-defaults nil
|
||||||
completion-category-overrides '((file (styles partial-completion))))
|
completion-category-overrides '((file (styles basic partial-completion ))))
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Example configuration for Consult
|
;; Example configuration for Consult
|
||||||
@@ -490,7 +491,7 @@
|
|||||||
(point-min) (point-max)
|
(point-min) (point-max)
|
||||||
"cmake-format"
|
"cmake-format"
|
||||||
t t t; replace current buffer and redisplay it
|
t t t; replace current buffer and redisplay it
|
||||||
"-"
|
"--log-level=error" "-"
|
||||||
)
|
)
|
||||||
(goto-char (+ (point-min) current-point))
|
(goto-char (+ (point-min) current-point))
|
||||||
nil
|
nil
|
||||||
@@ -529,7 +530,7 @@
|
|||||||
(clangd . clangd)
|
(clangd . clangd)
|
||||||
:config
|
:config
|
||||||
(setq lsp-clients-clangd-args
|
(setq lsp-clients-clangd-args
|
||||||
'("--header-insertion-decorators=0" "--query-driver=/**/arm-none-eabi-*"))
|
'("--header-insertion-decorators=0" "--query-driver=/**/arm-none-eabi-*" "--log=verbose"))
|
||||||
:hook
|
:hook
|
||||||
(c-mode . lsp-deferred)
|
(c-mode . lsp-deferred)
|
||||||
(c++-mode . lsp-deferred)
|
(c++-mode . lsp-deferred)
|
||||||
|
|||||||
Reference in New Issue
Block a user