mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(vertico): add +vertico/find-file-in stopgap
Temporarily disable embark actions (and as a result, marginalia annotations) for +vertico/find-file-in and functions that use it, since because currently the embark actions don't inherit the intended default-directory, embark actions might run unintentional destructive operations if there are files with the same name in the default-directory and the directory +vertico/find-file-in is run on. Ref #5494
This commit is contained in:
committed by
Henrik Lissner
parent
f50bfdc703
commit
8b3b39532d
@ -192,10 +192,11 @@ overrides `completion-styles' during company completion sessions.")
|
|||||||
(add-hook 'marginalia-mode-hook #'all-the-icons-completion-marginalia-setup))
|
(add-hook 'marginalia-mode-hook #'all-the-icons-completion-marginalia-setup))
|
||||||
(advice-add #'marginalia--project-root :override #'doom-project-root)
|
(advice-add #'marginalia--project-root :override #'doom-project-root)
|
||||||
(pushnew! marginalia-command-categories
|
(pushnew! marginalia-command-categories
|
||||||
'(+default/find-file-under-here. file)
|
;; HACK temporarily disabled until #5494 is fixed
|
||||||
'(doom/find-file-in-emacsd . project-file)
|
;;'(+default/find-file-under-here. file)
|
||||||
'(doom/find-file-in-other-project . project-file)
|
;;'(doom/find-file-in-emacsd . project-file)
|
||||||
'(doom/find-file-in-private-config . file)
|
;;'(doom/find-file-in-other-project . project-file)
|
||||||
|
;;'(doom/find-file-in-private-config . file)
|
||||||
'(doom/describe-active-minor-mode . minor-mode)
|
'(doom/describe-active-minor-mode . minor-mode)
|
||||||
'(flycheck-error-list-set-filter . builtin)
|
'(flycheck-error-list-set-filter . builtin)
|
||||||
'(persp-switch-to-buffer . buffer)
|
'(persp-switch-to-buffer . buffer)
|
||||||
|
Reference in New Issue
Block a user