]> git.donarmstrong.com Git - lib.git/commitdiff
use vertico grid in more places
authorDon Armstrong <don@donarmstrong.com>
Sun, 1 Jan 2023 21:57:37 +0000 (13:57 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sun, 1 Jan 2023 21:57:37 +0000 (13:57 -0800)
emacs_el/configuration/don-configuration.org

index 5027fd74e49e0028c90adeff0f2b1832330fcc14..47207e2b46f11a88e2688fcab4823279b971ce58 100644 (file)
@@ -867,11 +867,31 @@ Attempts to automatically identify the right indentation for a file
 
   ;; Optionally enable cycling for `vertico-next' and `vertico-previous'.
   ;; (setq vertico-cycle t)
+  :custom
+  (vertico-grid-separator "       ")
+  (vertico-grid-lookahead 50)
+  (vertico-multiform-categories
+   '((file reverse)
+     (consult-grep buffer)
+     (consult-location)
+     (imenu buffer)
+     (library reverse indexed)
+     (org-roam-node reverse indexed)
+     (t reverse)
+     ))
+  (vertico-multiform-commands
+   '(("flyspell-correct-*" grid reverse)
+     (org-refile grid reverse indexed)
+     (consult-yank-pop indexed)
+     (consult-flycheck)
+     (consult-lsp-diagnostics)
+     ))
   :config
+  (vertico-multiform-mode)
   (define-key vertico-map "\r" #'vertico-directory-enter)
   (define-key vertico-map "\d" #'vertico-directory-delete-char)
   (define-key vertico-map "\M-\d" #'vertico-directory-delete-word)
-  (add-hook 'rfn-eshadow-update-overlay-hook #'vertico-directory-tidy
+  (add-hook 'rfn-eshadow-update-overlay-hook #'vertico-directory-tidy)
   )
 
 ;; Persist history over Emacs restarts. Vertico sorts by history position.