about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2023-07-07 15:26:29 +0100
committerDavid Morgan <djm_uk@protonmail.com>2023-07-07 15:26:29 +0100
commit812309e3dfe2f5e321c66841fa86b91d19164a44 (patch)
treebdfe460b3030b8f67adf331ccc667e5829c63daa
parentbafe3b14e8eeab15b81d559675931b3e3e3e5429 (diff)
downloaddotfiles-812309e3dfe2f5e321c66841fa86b91d19164a44.tar.gz
Fix consult-ripgrep-thing-at-point initial value
-rw-r--r--.emacs.d/lisp/init-minibuffer.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el
index fd1e3fd..77eda3d 100644
--- a/.emacs.d/lisp/init-minibuffer.el
+++ b/.emacs.d/lisp/init-minibuffer.el
@@ -321,7 +321,9 @@ DEFS is a plist associating completion categories to commands."
    consult-bookmark consult-recent-file consult-xref consult-buffer-no-preview
    consult--source-recent-file consult--source-project-recent-file consult--source-bookmark
    :preview-key '("M-." :debounce 0.2 "C-S-n" :debounce 0.2 "C-S-p")
-   consult-line-thing-at-point consult-ripgrep-thing-at-point
+   consult-ripgrep-thing-at-point
+   :initial (concat "#" (thing-at-point 'symbol))
+   consult-line-thing-at-point
    :initial (thing-at-point 'symbol))
 
   (defvar-local consult-toggle-preview-orig nil)