Switch to new lazy-based config
Still a bit WIP. Gradually adding back old plugins and config from old config.
This commit is contained in:
35
lua/plugins/dial.lua
Normal file
35
lua/plugins/dial.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
-- 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,
|
||||
}
|
||||
Reference in New Issue
Block a user