clktmr / vim-gdscript3

Syntax highlighting and completion for GDScript 3
MIT License
13 stars 3 forks source link

Viewing documentation? #4

Closed avahe-kellenberger closed 4 years ago

avahe-kellenberger commented 4 years ago

It would be great to have a way to view documentation using this plugin - Is there a way, or has anyone explored it?

clktmr commented 4 years ago

The plugin configures 'keywordprg' to open the official godot docs in your browser via xdg-open. You can try it by pressing 'K' in normal mode if your cursor is placed on some token. However since the gdscript3 parser is still incomplete, it will often fallback to search instead of opening the correct page directly.

Personally I would love to have the official documentation exported to manpage or vimhelp format and bundled with this plugin. This would allow for reading it directly in vim, similar to godots builtin editor.

avahe-kellenberger commented 4 years ago

I saw recently that a language server for godot should be implemented (in 3.2 I believe), really looking forward to it. Thanks for your response