From 2fd5f4e07643911e6fab5913dff2d1b803bb021e Mon Sep 17 00:00:00 2001 From: Natty Date: Sat, 10 Feb 2024 17:50:41 +0100 Subject: [PATCH] Fixed dial bindings to be functions --- mappings.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = {