feat(nvim): plugins

This commit is contained in:
thek4n 2024-05-14 10:32:36 +03:00
parent 0926c60ee2
commit 93c171b765
2 changed files with 24 additions and 6 deletions

View File

@ -47,11 +47,6 @@ map({'n', 'v'}, 'x', '"_x')
-- Put without overwrite yanked text
map('v', 'p', 'P')
-- Increment/decrement
map('n', '+', '<C-a>')
map('n', '-', '<C-x>')
-- map \ to prev finding
map({"n", "v"}, [[\]], ',')

View File

@ -66,5 +66,28 @@ return {
config = function()
vim.keymap.set("n", "<Leader>rl", '<cmd>PostmanExec<CR>')
end
}
},
{
'monaqa/dial.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
keys = {"+", "-"},
config = function()
local augend = require("dial.augend")
require("dial.config").augends:register_group{
default = {
augend.integer.alias.decimal_int,
augend.semver.alias.semver,
augend.constant.alias.bool
},
}
vim.keymap.set("n", "+", function()
require("dial.map").manipulate("increment", "normal")
end)
vim.keymap.set("n", "-", function()
require("dial.map").manipulate("decrement", "normal")
end)
end
},
}