Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selectrum posframe #63

Open
DarkBuffalo opened this issue Jul 21, 2022 · 0 comments
Open

selectrum posframe #63

DarkBuffalo opened this issue Jul 21, 2022 · 0 comments

Comments

@DarkBuffalo
Copy link

Hello,
First of all thank you for this package.

using posframe and selectrum, dimmer doesn't seem to recognize the posframe buffer.
do you have an idea ?

  (p! selectrum
    :init
    ;; always show a certain amount of candidates
    (setq selectrum-max-window-height 15)
    (setq selectrum-fix-vertical-window-height t)
    ;; selection face should extend to the screen edge
    (setq selectrum-extend-current-candidate-highlight t)
    (setq selectrum-display-action '(display-buffer-show-in-posframe)) ;selectrum on posframe
    :config
    (selectrum-mode 1)

    :general
    (leader-keys
      "R" 'selectrum-repeat))


  ;; [[https://github.com/radian-software/selectrum/wiki/Additional-Configuration#display-candidates-in-a-posframe][selectrum on posframe]]
  (defun display-buffer-show-in-posframe (buffer _alist)
    (frame-root-window
     (posframe-show buffer
                    :min-height 15
                    :min-width (frame-width)
                    :internal-border-width 1
                    ;;:internal-border-color (face-attribute "#123" :background nil t)
                    :left-fringe 8
                    :right-fringe 8
                    :poshandler 'posframe-poshandler-frame-center)))

  (add-hook 'minibuffer-exit-hook 'posframe-delete-all)


(use-package dimmer
  :hook (after-init . dimmer-mode)
  :config
  (setq dimmer-fraction 0.1)
  :hook (after-init . dimmer-mode)
  (dimmer-configure-which-key)
  (dimmer-configure-magit)
  (dimmer-configure-posframe)
  :custom
  (dimmer-exclusion-regexp-list '("^\\*[h|H]elm.*\\*"
                                  "^\\*Minibuf-.*\\*"
                                  "^\\*Echo.*"
                                  "^.\\*which-key\\*$"
				  "^ \\*.*posframe.*\\*$"))
  )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant