Skip to content

Commit

Permalink
refactor: rewrite diagnostic jump
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed May 18, 2024
1 parent 45be478 commit 1bd3cca
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 245 deletions.
4 changes: 2 additions & 2 deletions lua/lspsaga/command.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ local subcommands = {
require('lspsaga.diagnostic.show'):show_diagnostics({ cursor = true, args = args })
end,
diagnostic_jump_next = function()
require('lspsaga.diagnostic'):goto_next()
require('lspsaga.diagnostic'):goto_pos(1)
end,
diagnostic_jump_prev = function()
require('lspsaga.diagnostic'):goto_prev()
require('lspsaga.diagnostic'):goto_pos(-1)
end,
code_action = function()
require('lspsaga.codeaction'):code_action()
Expand Down
Loading

0 comments on commit 1bd3cca

Please sign in to comment.