Closed danyalutsevich closed 1 month ago
If I had to guess, you aren't triggering the "hover" function. See here: https://neovim.io/doc/user/lsp.html#vim.lsp.buf.hover()
Not sure how experienced you are w/ neovim - a "hover" with the terminal cursor isn't like a "hover" with the mouse cursor in VSCode. You need to trigger a "hover" action, which vim.lsp.buf.hover()
does. I think the default keybind is "K" in insert mode. You can also type :lua vim.lsp.buf.hover()
to trigger it manually.
forgot to try "K" but still dont work if that helps there is my config https://github.com/danyalutsevich/nvim/blob/base/lua/plugins/ts-error-translator.lua
it it shows only type description
@pmwals09 any ideas? thank you in advice
I seem to have the same issue. In my setup, based very heavily on kickstart.nvim, vim.lsp.buf.hover()
returns type information instead of the error translation.
I have included the plugin without overriding any defaults, and am using vtsls
as my LSP. Is there anything we need to do to manage which of these behaviours is triggered by K
?
@danyalutsevich I figured it out. It's not triggered by hover()
, it's triggered by :lua vim.diagnostic.open_float()
@bren-do oh thanks man. It works
i think this issue can be closed
When Im draggin my cursor over the line with error the "window" with error do not show up what am I doin wrong?