Neue Capture-Templates

This commit is contained in:
hansi
2026-04-06 14:04:32 +02:00
parent ee451f78fd
commit b230f57ff0
10 changed files with 220 additions and 29 deletions

31
lisp/init-search.el Normal file
View 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