diff options
| author | Brahmajit Das <listout@listout.xyz> | 2026-02-06 02:34:56 +0000 |
|---|---|---|
| committer | Brahmajit Das <listout@listout.xyz> | 2026-02-06 02:40:00 +0000 |
| commit | 339d7318c04d2ef00724fe409691bd4274182401 (patch) | |
| tree | c022b46c55668f174064fd36613c36b1a6932e47 /plugin/keymaps.lua | |
| parent | 5a78358edfcf1075154944731653245542a771d9 (diff) | |
| download | nvim-339d7318c04d2ef00724fe409691bd4274182401.tar.gz | |
plugin: keymaps: Repace opts.jump.float with newer cleaner alternative
opts.jump.float will be depricated in 0.14, this is making things future
proof.
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to '')
| -rw-r--r-- | plugin/keymaps.lua | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/plugin/keymaps.lua b/plugin/keymaps.lua index ec8e436..0f4c5dd 100644 --- a/plugin/keymaps.lua +++ b/plugin/keymaps.lua @@ -54,5 +54,23 @@ keymap("s", "<c-k>", "<cmd>lua require'luasnip'.jump(-1)<CR>", opts) vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float) -- vim.keymap.set('n', '[d', vim.diagnostic.jump({count=1, float=true})) -- vim.keymap.set('n', ']d', vim.diagnostic.goto_next) -vim.diagnostic.config({ jump = { float = true }}) +-- vim.diagnostic.config({ jump = { float = true }}) +vim.keymap.set('n', '[d', function() + vim.diagnostic.jump({ + count = -1, + float = { + border = "rounded", + source = "always", + }, + }) +end) +vim.keymap.set('n', ']d', function() + vim.diagnostic.jump({ + count = 1, + float = { + border = "rounded", + source = "always", + }, + }) +end) vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist) |
