Tyler Hallada
1bd905a6bf
Still a bit WIP. Gradually adding back old plugins and config from old config.
36 lines
780 B
Lua
36 lines
780 B
Lua
-- better increase/descrease
|
|
return {
|
|
"monaqa/dial.nvim",
|
|
keys = {
|
|
{
|
|
"<C-a>",
|
|
function()
|
|
return require("dial.map").inc_normal()
|
|
end,
|
|
expr = true,
|
|
desc = "Increment",
|
|
},
|
|
{
|
|
"<C-x>",
|
|
function()
|
|
return require("dial.map").dec_normal()
|
|
end,
|
|
expr = true,
|
|
desc = "Decrement",
|
|
},
|
|
},
|
|
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.semver.alias.semver,
|
|
augend.constant.new({ elements = { "let", "const" } }),
|
|
},
|
|
})
|
|
end,
|
|
}
|