diff --git a/mappings.lua b/mappings.lua index a636eb1..f53868a 100644 --- a/mappings.lua +++ b/mappings.lua @@ -13,13 +13,13 @@ return { ["K"] = {require("hover").hover, desc = "Show hover.nvim popup"}, [""] = {":Telescope buffers", desc = "Show Telescope for open buffers"}, [""] = {":Telescope registers", desc = "Show Telescope for register paste"}, - [""] = {dial.manipulate("increment", "normal"), desc = "Increment number"}, - [""] = {dial.manipulate("decrement", "normal"), desc = "Decrement number"}, + [""] = {function () dial.manipulate("increment", "normal") end, desc = "Increment number"}, + [""] = {function () dial.manipulate("decrement", "normal") end, desc = "Decrement number"}, [""] = {false, desc = "Decrement number (unused)"} }, v = { - [""] = {dial.manipulate("increment", "visual"), desc = "Increment number"}, - [""] = {dial.manipulate("decrement", "visual"), desc = "Decrement number"}, + [""] = {function () require("dial.map").manipulate("increment", "visual") end, desc = "Increment number"}, + [""] = {function () require("dial.map").manipulate("decrement", "visual") end, desc = "Decrement number"}, [""] = {false, desc = "Decrement number (unused)"} }, i = {