Add consult-org-roam

This commit is contained in:
Jeremy Dormitzer 2024-04-03 08:29:18 -06:00
parent ba6c7cb66f
commit fa0f619a43
2 changed files with 13 additions and 1 deletions

View File

@ -165,6 +165,18 @@ targets."
:general :general
(eglot-prefix-map "s" #'consult-eglot-symbols)) (eglot-prefix-map "s" #'consult-eglot-symbols))
(use-package consult-org-roam
:after (consult org-roam)
:config
(consult-org-roam-mode 1)
:custom
(consult-org-roam-grep-func #'consult-ripgrep)
(consult-org-roam-buffer-after-buffers t)
:general
(org-roam-commands-map "b" #'consult-org-roam-backlinks
"B" #'consult-org-roam-backlinks-recursive
"l" #'consult-org-roam-forward-links))
(use-package embark-consult (use-package embark-consult
:general :general
(leader-map "/" embark-consult-search-map)) (leader-map "/" embark-consult-search-map))

View File

@ -164,7 +164,7 @@
(setq org-roam-v2-ack t) (setq org-roam-v2-ack t)
(defvar org-roam-commands-map (make-sparse-keymap)) (defvar org-roam-commands-map (make-sparse-keymap))
(general-def org-roam-commands-map (general-def org-roam-commands-map
"l" #'org-roam-buffer-toggle "r" #'org-roam-buffer-toggle
"f" #'org-roam-node-find "f" #'org-roam-node-find
"i" #'org-roam-node-insert "i" #'org-roam-node-insert
"I" #'org-roam-node-insert-immediate) "I" #'org-roam-node-insert-immediate)