feat(nvim): plugins
This commit is contained in:
parent
0926c60ee2
commit
93c171b765
@ -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"}, [[\]], ',')
|
||||
|
||||
|
||||
@ -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
|
||||
},
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user