Fix vertico-posframe in CLI

This commit is contained in:
Andrea Ciceri 2023-12-12 01:27:27 +01:00
parent f811c9e658
commit 079331dc54
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
3 changed files with 12 additions and 8 deletions

View file

@ -33,6 +33,12 @@
url = "github:firmart/notmuch-notify";
flake = false;
};
# TODO: use from MELPA when v0.7.5 reaches it
# https://github.com/tumashu/vertico-posframe/issues/36
extra-package-vertico-posframe = {
url = "github:tumashu/vertico-posframe";
flake = false;
};
};
outputs = inputs @ {flake-parts, ...}:

12
init.el
View file

@ -341,16 +341,14 @@
:config
(vertico-posframe-mode +1)
:custom
(vertico-multiform-commands
'((t
posframe
(vertico-posframe-poshandler . posframe-poshandler-frame-center)
(vertico-posframe-fallback-mode . vertico-buffer-mode))))
(vertico-posframe-min-height 0)
(vertico-posframe-min-width 80)
(vertico-posframe-parameters '((alpha-background . 80)))
;; I'm globally enabling vertico-posframe-mode in spite of being advised against it by the README
;; It seems to work
;;(vertico-multiform-commands
;; '((t
;; posframe
;; (vertico-posframe-poshandler . posframe-poshandler-frame-center)
;; (vertico-posframe-fallback-mode . vertico-buffer-mode))))
)
(use-package marginalia

View file

@ -7,6 +7,7 @@ with epkgs; let
chatgpt = [polymode];
copilot = [editorconfig dash s];
notmuch-notify = [alert notmuch];
vertico-posframe = [posframe vertico];
};
overrideAttrsPerPackage = {
@ -93,7 +94,6 @@ with epkgs; let
consult-org-roam
pass
password-store-otp
vertico-posframe
eldoc-box
go-translate
notmuch