godotengine / emacs-gdscript-mode

An Emacs package to get GDScript support and syntax highlighting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The hydra window is very large and makes coding a bit jarring

tavurth opened this issue · comments

commented

The Hydra window on my machine (doom-emacs, Mac OX) is very large and takes more than half of the entire screenspace.

Is there some way to limit this size?

Screenshot 2021-06-09 at 20 13 46

Are you sure this is hydra? This looks like the language server package showing you docs interactively. And this doesn't have to do with gdscript-mode.

Hydra gives you a few keyboard shortcuts only, no docs or anything else.

commented

Oh I see, this only showed up after I installed hydra following the docs, but I guess it must be lsp mode.

Is that where I should be searching?

I would bet on lsp-ui. Try setting lsp-ui-doc-enable to nil. It's the bit that presents the docs, normally in a child frame, but depending on your emacs config or distribution it may use popup buffers like on your screenshot.

commented

Thanks for the quick response!

Hmm unfortunately it doesn't seem to have an effect as it's already disabled:

Screenshot 2021-06-09 at 22 12 03

I also found this by browsing:
Screenshot 2021-06-09 at 22 11 29

But it also doesn't seem to have an effect.

Did you not run into something like this while working on a gdscript buffer?

Perhaps it's something else in my configuration, but it's pretty slim, mostly doom defaults.

If lsp-ui-doc is disabled, or lsp-ui is disabled, then none of the variables will affect your config as they all relate to that module.

It's most likely the lsp package then. gdscript-mode has no code for documentation display.

You can try lowering lsp-signature-doc-lines, it's set to show max 20 lines of the docs by default. If that doesn't help, can you hop on their discord? lsp devs or users could probably help you better.

Here's their website: https://emacs-lsp.github.io/lsp-mode/