🚀 perf(nvim): omitted dial config
This commit is contained in:
parent
75c2ed6f3f
commit
c377fc69b5
1 changed files with 53 additions and 16 deletions
|
@ -2,20 +2,57 @@ return {
|
||||||
"monaqa/dial.nvim",
|
"monaqa/dial.nvim",
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<A-a>", function() return require("dial.map").inc_normal() end, expr = true, desc = "Increment" },
|
{
|
||||||
{ "<A-x>", function() return require("dial.map").dec_normal() end, expr = true, desc = "Decrement" },
|
"<C-a>",
|
||||||
},
|
function()
|
||||||
config = function()
|
require("dial.map").manipulate("increment", "normal")
|
||||||
local augend = require("dial.augend")
|
|
||||||
require("dial.config").augends:register_group({
|
|
||||||
default = {
|
|
||||||
augend.integer.alias.decimal,
|
|
||||||
augend.integer.alias.hex,
|
|
||||||
augend.date.alias["%Y/%m/%d"],
|
|
||||||
augend.constant.alias.bool,
|
|
||||||
augend.constant.new({ elements = { "let", "const" } }),
|
|
||||||
augend.semver.alias.semver,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<C-x>",
|
||||||
|
function()
|
||||||
|
require("dial.map").manipulate("decrement", "normal")
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"g<C-a>",
|
||||||
|
function()
|
||||||
|
require("dial.map").manipulate("increment", "gnormal")
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"g<C-x>",
|
||||||
|
function()
|
||||||
|
require("dial.map").manipulate("decrement", "gnormal")
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<C-a>",
|
||||||
|
function()
|
||||||
|
require("dial.map").manipulate("increment", "visual")
|
||||||
|
end,
|
||||||
|
mode = "v",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<C-x>",
|
||||||
|
function()
|
||||||
|
require("dial.map").manipulate("decrement", "visual")
|
||||||
|
end,
|
||||||
|
mode = "v",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"g<C-a>",
|
||||||
|
function()
|
||||||
|
require("dial.map").manipulate("increment", "gvisual")
|
||||||
|
end,
|
||||||
|
mode = "v",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"g<C-x>",
|
||||||
|
function()
|
||||||
|
require("dial.map").manipulate("decrement", "gvisual")
|
||||||
|
end,
|
||||||
|
mode = "v",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue