summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2025-10-26 20:13:53 +0300
committerA Farzat <a@farzat.xyz>2025-10-26 20:13:53 +0300
commita915c2d0d957b63428b6be17c5347a9a3c4e87ef (patch)
treefae2644656970213c05f64991bedb7a7dfebc131 /.config/nvim
parent493ca7b4e3fa375b6f5b33d4fce25d6a4903b61f (diff)
downloaddotfiles-a915c2d0d957b63428b6be17c5347a9a3c4e87ef.tar.gz
dotfiles-a915c2d0d957b63428b6be17c5347a9a3c4e87ef.zip
Replace deprecated vim.diagnostic functionsHEADmaster
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/plugin-settings/lspconfig.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/plugin-settings/lspconfig.lua b/.config/nvim/plugin-settings/lspconfig.lua
index b866cbb..e8417df 100644
--- a/.config/nvim/plugin-settings/lspconfig.lua
+++ b/.config/nvim/plugin-settings/lspconfig.lua
@@ -2,8 +2,8 @@
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
local opts = { noremap = true, silent = true }
vim.keymap.set("n", "<space>e", vim.diagnostic.open_float, opts)
-vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, opts)
-vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts)
+vim.keymap.set("n", "[d", function() vim.diagnostic.jump({count=-1, float=true}) end, opts)
+vim.keymap.set("n", "]d", function() vim.diagnostic.jump({count=1, float=true}) end, opts)
vim.keymap.set("n", "<space>q", vim.diagnostic.setloclist, opts)
-- See `:help vim.lsp.*` for documentation on any of the below functions
vim.keymap.set("n", "<leader>D", vim.lsp.buf.declaration, opts)