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