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

eldoc-box-help-at-point not displaing the correct docs #92

Closed
leafarbelm opened this issue Nov 24, 2023 · 4 comments
Closed

eldoc-box-help-at-point not displaing the correct docs #92

leafarbelm opened this issue Nov 24, 2023 · 4 comments

Comments

@leafarbelm
Copy link

I'm trying to add a key bind to eldoc-box-help-at-point but first it dind't show the frame so i add it to the eldoc-box-self-insert-command-list and its showing now but it shows the wrong docs when using the key bind but if i way to display automatically it works correct, here's the config:

 (use-package eldoc-box
  :after eglot
  :bind ("C-M-;" . eldoc-box-help-at-point)
  :hook (eglot-managed-mode . eldoc-box-hover-at-point-mode)
  :custom
  (eldoc-idle-delay 10)
  :config
  (add-to-list 'eldoc-box-self-insert-command-list 'scroll-other-window)
  (add-to-list 'eldoc-box-self-insert-command-list 'scroll-other-window-down)
  (add-to-list 'eldoc-box-self-insert-command-list 'eldoc-box-help-at-point))

I also notice it only works after it shows the docs automatically at least one time before that i get the following error:

funcall-interactively: Wrong type argument: stringp, nil

I'm doing something wrong?

@casouri
Copy link
Owner

casouri commented Nov 26, 2023

Hmm, try removing eldoc-idle-delay, or set it to something less than 1. I think that's the reason why you are seeing outdated doc.

@leafarbelm
Copy link
Author

Hi, it actually worked but I'm trying to remove the auto pop-up to have the docs only popping up when i press the key that's why a had a long eldoc-idle-delay time, any ideas on how i can accomplish this?

@casouri
Copy link
Owner

casouri commented Nov 27, 2023

Then you should turn off eldoc-box-hover-at-point-mode, eldoc-box-help-at-point along will do what you want.

@leafarbelm
Copy link
Author

Thanks! its working great now, congrats in the package!

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

2 participants