Skip to content

Conversation

@keram
Copy link
Contributor

@keram keram commented Nov 16, 2025

Why:
Idris2 IDE mode is lacking implementation of doc-overview attribute used in Idris 1 to display the short doc in minibuffer.

This may be temporary until Idris2 implementation is updated.

Before:
eldoc-idris2-screen-before

After:
eldoc-idris2-screen

Will keep this open as draft for while to test if there will be possible performance implications and open for feedback.
Of course best would be to to do changes in the idris2 itself but other's may consider this also useful meanwhile.

(if (and (stringp prop-val) (string-suffix-p ": " prop-val) (>=-protocol-version 2 1))
(let* ((thing (idris-name-at-point))
(ty (idris-eval (list :type-of thing) t))
;; (ty (idris-eval (list :docs-for thing) t))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs-for returns often multi line string which then causes mini-buffer to jump and distracts user.

Why:
Idris2 IDE mode is lacking implementation of `doc-overview`
attribute used in Idris 1 to display the short doc in minibuffer.

This may be temporary until Idris2 implementation is updated.
@keram keram force-pushed the eldoc-idris2-fallback branch from 752f35c to 5e9a68f Compare November 17, 2025 18:00
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

Successfully merging this pull request may close these issues.

1 participant