Neue Capture-Templates
This commit is contained in:
31
lisp/init-search.el
Normal file
31
lisp/init-search.el
Normal file
@@ -0,0 +1,31 @@
|
||||
;;; init-search.el --- Search and completion setup -*- lexical-binding: t; -*-
|
||||
|
||||
;; Vertico: schlanke vertikale Completion UI
|
||||
(vertico-mode 1)
|
||||
|
||||
;; Zusätzliche Infos in der Minibuffer-Auswahl
|
||||
(marginalia-mode 1)
|
||||
|
||||
;; Flexiblere Suchsyntax
|
||||
(setq completion-styles '(orderless basic)
|
||||
completion-category-defaults nil
|
||||
completion-category-overrides '((file (styles basic partial-completion))))
|
||||
|
||||
;; Consult-Vorschau etwas verzögert, damit es im Terminal angenehm bleibt
|
||||
(setq consult-preview-key '(:debounce 0.2 any))
|
||||
|
||||
;; Optional: Vorschau ab bestimmter Taste statt immer
|
||||
;; (setq consult-preview-key "M-.")
|
||||
|
||||
;; Ripgrep verwenden
|
||||
(setq consult-ripgrep-args
|
||||
"rg --null --line-buffered --color=never --max-columns=300 --path-separator / --smart-case --no-heading --line-number .")
|
||||
|
||||
;; Nützliche Keybindings
|
||||
(global-set-key (kbd "C-c s") #'consult-ripgrep)
|
||||
(global-set-key (kbd "C-c f") #'consult-line)
|
||||
(global-set-key (kbd "C-c b") #'consult-buffer)
|
||||
(global-set-key (kbd "C-c g") #'consult-git-grep)
|
||||
|
||||
(provide 'init-search)
|
||||
;;; init-search.el ends here
|
||||
Reference in New Issue
Block a user