diff --git a/lua/astrocommunity/editing-support/dial-nvim/init.lua b/lua/astrocommunity/editing-support/dial-nvim/init.lua index c240d0d05..ea335e197 100644 --- a/lua/astrocommunity/editing-support/dial-nvim/init.lua +++ b/lua/astrocommunity/editing-support/dial-nvim/init.lua @@ -1,43 +1,57 @@ return { "monaqa/dial.nvim", keys = { + -- Visual mode mappings { "", mode = { "v" }, - function() return require("dial.map").inc_visual() end, + function() return require("dial.map").manipulate("increment", "visual") end, expr = true, desc = "Increment", }, { "", mode = { "v" }, - function() return require("dial.map").dec_visual() end, + function() return require("dial.map").manipulate("decrement", "visual") end, expr = true, desc = "Decrement", }, { "g", mode = { "v" }, - function() return require("dial.map").inc_gvisual() end, + function() return require("dial.map").manipulate("increment", "gvisual") end, expr = true, desc = "Increment", }, { "g", mode = { "v" }, - function() return require("dial.map").dec_gvisual() end, + function() return require("dial.map").manipulate("decrement", "gvisual") end, expr = true, desc = "Decrement", }, + -- Normal mode mappings { "", - function() return require("dial.map").inc_normal() end, + function() return require("dial.map").manipulate("increment", "normal") end, expr = true, desc = "Increment", }, { "", - function() return require("dial.map").dec_normal() end, + function() return require("dial.map").manipulate("decrement", "normal") end, + expr = true, + desc = "Decrement", + }, + { + "g", + function() return require("dial.map").manipulate("increment", "gnormal") end, + expr = true, + desc = "Increment", + }, + { + "g", + function() return require("dial.map").manipulate("decrement", "gnormal") end, expr = true, desc = "Decrement", },