neovim-config/lua/plugins/dial.lua
Tyler Hallada 1bd905a6bf Switch to new lazy-based config
Still a bit WIP. Gradually adding back old plugins and config from old config.
2023-12-01 15:26:02 -05:00

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,
}