🚀 perf(nvim): omitted dial config
This commit is contained in:
parent
75c2ed6f3f
commit
c377fc69b5
1 changed files with 53 additions and 16 deletions
|
@ -1,21 +1,58 @@
|
|||
return {
|
||||
"monaqa/dial.nvim",
|
||||
-- stylua: ignore
|
||||
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" },
|
||||
keys = {
|
||||
{
|
||||
"<C-a>",
|
||||
function()
|
||||
require("dial.map").manipulate("increment", "normal")
|
||||
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",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
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,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue