neovim

update next diagnostic movement to use new api

+6 -3
+6 -3
candy/lua/marshmallow/lsp.lua
··· 6 6 vim.api.nvim_create_autocmd("LspAttach", { 7 7 group = group, 8 8 callback = function(ev) 9 - local client = vim.lsp.get_client_by_id(ev.data.client_id) 10 9 local bufnr = ev.buf 11 10 12 11 vim.lsp.inlay_hint.enable(true, { ··· 15 14 16 15 local opts = { noremap = true, silent = true } 17 16 vim.keymap.set("n", "E", vim.diagnostic.open_float, opts) 18 - vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, opts) 19 - vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts) 17 + vim.keymap.set("n", "[d", function() 18 + vim.diagnostic.jump({ count = -1 }) 19 + end, opts) 20 + vim.keymap.set("n", "]d", function() 21 + vim.diagnostic.jump({ count = 1 }) 22 + end, opts) 20 23 vim.keymap.set( 21 24 "n", 22 25 "<space>q",