fix goto deprication
This commit is contained in:
@@ -113,14 +113,16 @@ map("n", "gl", vim.diagnostic.setloclist, { desc = "diagnostic list" })
|
||||
|
||||
-- diagnostics on warnings and errors.
|
||||
map("n", "]g", function()
|
||||
vim.diagnostic.goto_next({
|
||||
vim.diagnostic.jump({
|
||||
count = 1,
|
||||
severity = {
|
||||
min = vim.diagnostic.severity.WARN,
|
||||
},
|
||||
})
|
||||
end, { desc = "next warning/error" })
|
||||
map("n", "[g", function()
|
||||
vim.diagnostic.goto_prev({
|
||||
vim.diagnostic.jump({
|
||||
count = -1,
|
||||
severity = {
|
||||
min = vim.diagnostic.severity.WARN,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user