nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.44k stars 286 forks source link

`Lspsaga diagnostic_jump_next` doesn't show current cursor diagnostic; instead it jumps to the next diagnostic #1467

Open kohane27 opened 3 months ago

kohane27 commented 3 months ago

Describe the bug

https://github.com/nvimdev/lspsaga.nvim/assets/57322459/334a773e-1e76-45a2-a155-8e0e88f2e370

According to the doc:

Invoke :Lspsaga diagnostic_jump_next and :Lspsaga diagnostic_jump_prev to jump around diagnostics. When the current cursor position has a diagnostic available, the commands will show the diagnostic in a nice float.

Steps to reproduce

Test with below:

unction greet() {
  console.log("Hello World!");
}

greet();
  1. Cursor is at unction
  2. Run Lspsaga diagnostic_jump_next

Expect to show Unknown keyword or identifier. Did you mean 'function'? Instead, it jumps to the next diagnostic and gives ';' expected. 1:17:1 tsserver 1005

Expected behavior

When the current cursor position has a diagnostic available, the commands will show the diagnostic in a nice float.

Neovim version (nvim -v)

v0.10.0

lspsaga commit

6f920cf

Terminal name/version

kitty 0.35.1

Kyren223 commented 2 months ago

@glepnir any estimate on when this will be fixed? I want to be able to open that menu where my cursor is. Alternatively, have another way to show this menu for the current cursor position (with a command for it)