Closed DarkWingMcQuack closed 5 months ago
Hello everybody, I would like to enable file previews for commands like find-file or project-find-file, but was not able to do so with consult. My config is super basic and i dont know what i am missing.
find-file
project-find-file
(use-package orderless :custom (completion-styles '(orderless basic)) (completion-category-overrides '((file (styles basic partial-completion))))) (use-package savehist :init (savehist-mode)) (use-package consult :general (my-leader "p b" '(consult-project-buffer :wk "switch project buffer") "b f" '(consult-buffer :wk "switch buffer")) (general-define-key :states 'normal "F" '(consult-line :wk "find line") "g l" '(consult-goto-line :wk "goto line"))) (use-package vertico :custom (vertico-count 14) :config (vertico-mode)) (use-package marginalia :custom (marginalia-max-relative-age 0) (marginalia-align 'center) :init (marginalia-mode)) (use-package nerd-icons) (use-package nerd-icons-completion :after marginalia :config (nerd-icons-completion-mode) (add-hook 'marginalia-mode-hook #'nerd-icons-completion-marginalia-setup))
this is the whole consult config. is there an easy way to achieve the previews?
Hello everybody, I would like to enable file previews for commands like
find-file
orproject-find-file
, but was not able to do so with consult. My config is super basic and i dont know what i am missing.this is the whole consult config. is there an easy way to achieve the previews?