Skip to content

Commit

Permalink
fix(diagnostics): propagate options to `vim.diagnostics.goto_{next,pr…
Browse files Browse the repository at this point in the history
…ev}` to enable severity filter (#1445)
  • Loading branch information
izumin5210 authored May 19, 2024
1 parent 6302f83 commit ad61778
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lspsaga/diagnostic/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,13 @@ function diag:goto_pos(pos, opts)
if not entry then
return
end
(is_forward and vim.diagnostic.goto_next or vim.diagnostic.goto_prev)({
(is_forward and vim.diagnostic.goto_next or vim.diagnostic.goto_prev)(vim.tbl_extend("keep", {
float = {
border = config.ui.border,
header = '',
prefix = { '', 'Title' },
},
})
}, opts or {}))
util.valid_markdown_parser()
require('lspsaga.beacon').jump_beacon({ entry.lnum, entry.col }, #api.nvim_get_current_line())
vim.schedule(function()
Expand Down

0 comments on commit ad61778

Please sign in to comment.