diff options
| author | A Farzat <a@farzat.xyz> | 2025-10-26 20:13:53 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-10-26 20:13:53 +0300 |
| commit | a915c2d0d957b63428b6be17c5347a9a3c4e87ef (patch) | |
| tree | fae2644656970213c05f64991bedb7a7dfebc131 /.config/nvim/plugin-settings | |
| parent | 493ca7b4e3fa375b6f5b33d4fce25d6a4903b61f (diff) | |
| download | dotfiles-a915c2d0d957b63428b6be17c5347a9a3c4e87ef.tar.gz dotfiles-a915c2d0d957b63428b6be17c5347a9a3c4e87ef.zip | |
Diffstat (limited to '.config/nvim/plugin-settings')
| -rw-r--r-- | .config/nvim/plugin-settings/lspconfig.lua | 4 |
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) |
