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

gnvim_lsp#hover#cursor_moved => unknown function gnvim#cursor_tooltip#hide #33

Closed
teto opened this issue Apr 26, 2019 · 6 comments
Closed

Comments

@teto
Copy link
Contributor

teto commented Apr 26, 2019

for some reason I can't select the text in messages but basically with neovim master and gnvim_lsp plugin I get unknown function gnvim#cursor_tooltip#hide

@teto
Copy link
Contributor Author

teto commented Apr 26, 2019

more details:

Not supported option set: arabicshape
Not supported option set: ambiwidth
Not supported option set: emoji
Not supported option set: guifontset
Not supported option set: guifontwide
Not supported option set: pumblend
Not supported option set: showtabline
Not supported option set: termguicolors
Not supported option set: ext_linegrid
Not supported option set: ext_multigrid
Not supported option set: ext_hlstate
Not supported option set: ext_termcolors
Not supported option set: ext_cmdline
Not supported option set: ext_popupmenu
Not supported option set: ext_tabline
Not supported option set: ext_wildmenu
Not supported option set: ext_messages
Not supported option set: termguicolors
Received unknown redraw event: mouse_on
Received unknown redraw event: set_icon
Received unknown redraw event: update_menu
Not supported option set: termguicolors
Received unknown redraw event: update_menu
Received unknown redraw event: mouse_on
Not supported option set: showtabline
Received unknown redraw event: mouse_off
Failed to turn input event into nvim key (keyval: 65513)
Failed to turn input event into nvim key (keyval: 65513)
Failed to turn input event into nvim key (keyval: 65513)
Failed to turn input event into nvim key (keyval: 65513)
Failed to turn input event into nvim key (keyval: 65513)
Failed to turn input event into nvim key (keyval: 65513)
Failed to turn input event into nvim key (keyval: 65513)
Failed to turn input event into nvim key (keyval: 65513)
Failed to turn input event into nvim key (keyval: 65513)
Received unknown redraw event: mouse_on
Received unknown redraw event: set_icon
Not supported option set: ext_cmdline
Not supported option set: ext_popupmenu
Not supported option set: ext_tabline
Not supported option set: ext_wildmenu
Not supported option set: ext_messages
GnvimScroll error: NeovimError(0, "Vim(call):E117: Fonction inconnue : gnvim#cursor_tooltip#hide")
GnvimScroll error: NeovimError(0, "Vim(call):E117: Fonction inconnue : gnvim#cursor_tooltip#hide")
Not supported option set: ext_cmdline
Not supported option set: ext_popupmenu
Not supported option set: ext_tabline
Not supported option set: ext_wildmenu
Not supported option set: ext_messages
Received unknown redraw event: mouse_off
Received unknown redraw event: mouse_on
Received unknown redraw event: mouse_off
Received unknown redraw event: mouse_on
GnvimScroll error: NeovimError(0, "Vim(call):E117: Fonction inconnue : gnvim#cursor_tooltip#hide")
GnvimScroll error: NeovimError(0, "Vim(call):E117: Fonction inconnue : gnvim#cursor_tooltip#hide")
GnvimScroll error: NeovimError(0, "Vim(call):E117: Fonction inconnue : gnvim#cursor_tooltip#hide")
GnvimScroll error: NeovimError(0, "Vim(call):E117: Fonction inconnue : gnvim#cursor_tooltip#hide")
Received unknown redraw event: mouse_on

@vhakulinen
Copy link
Owner

gnvim#cursor_tooltip#hide is defined here. Make sure that GNVIM_RUNTIME_PATH is pointing to correct place so gnvim can load it's runtime files.

@teto
Copy link
Contributor Author

teto commented Apr 28, 2019

I can fix GNVIM_RUNTIME_PATH as you say. Do you plan to add an installer that would properly install this ? for instance I don't think neovim-qt requires anything for
https://github.com/equalsraf/neovim-qt/blob/master/src/gui/runtime/plugin/nvim_gui_shim.vim

@vhakulinen
Copy link
Owner

gnvim requires some colors from color scheme which nvim can't supply (currently) without some custom viml and I don't fancy too much to include that viml into the binary it self. The Makefile contains instructions for make install to copy the files in place.

The default value for GNVIM_RUNTIME_PATH is defined here. If you need that to be different, any PRs to define that value on compile time are welcome. Shouldn't be much different from how we currently define the version number.

I'm closing this issue, since from what I gathered, the issue is/was that you had GNVIM_RUMTIME_PATH set to wrong value.

@teto
Copy link
Contributor Author

teto commented Apr 29, 2019

The default value for GNVIM_RUNTIME_PATH is defined here. If you need that to be different, any PRs to define that value on compile time are welcome. Shouldn't be much different from how we currently define the version number.

I wrapped the program with a correct value for GNVIM_RUNTIME_PATH, reinstalled the lsp program and it seems to work though I don't get markdown popups. I guess I must use the vim-lsp plugin. Anyway I could adapt it to LanguageClient-neovim ?

@vhakulinen
Copy link
Owner

Gnvim provides API for using the cursor tooltip, which gnvim-lsp uses to do the hover using lsp and the vim-lsp vim plugin. The code that handles the hover stuff is quite trivial (here). Most of the code is for handling the cursor tooltip position. Porting that to use LangaugeClient-neovim should be quite trivial.

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