-
-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Labels
Description
First of all, thanks for this amazing tool!
As the title says, looking up the documentation with K does not work in Hy. I think the problem is this section using outdated Hy features:
conjure/fnl/conjure/client/hy/stdio.fnl
Lines 88 to 90 in dab027e
| code (.. "(if (in (mangle '" obj ") --macros--) | |
| (doc " obj ") | |
| (help " obj "))")] |
The following changes could make it work, though I haven't been able to test it:
code (.. "(if (in (hy.mangle '" obj ") _hy_macros)
(help (get _hy_macros (hy.mangle '" obj ")))
(help " obj "))")]Explanation of changes:
manglenow is in thehynamespace; without importing, it can be accessed likehy.mangle--macros--no longer exists; I think the equivalent is now_hy_macrosdocno longer exists; to get help for macros, first the object must be mangled and the result used to look up the function object in_hy_macros
I tried following the instructions in CONTRIBUTING.md, but the docker environment installs a version of Neovim that is no longer supported by Conjure. (Running sudo apt show neovim on 24.04 returns version 0.9.5-6ubuntu2).
I would appreciate it if you could look into these issues.
Thanks :D
Reactions are currently unavailable