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

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

Open
kohane27 opened this issue Jun 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kohane27
Copy link

kohane27 commented Jun 16, 2024

Describe the bug

lspsaga.mp4

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

@kohane27 kohane27 added the bug Something isn't working label Jun 16, 2024
@Kyren223
Copy link

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants