Fixed dial bindings to be functions

This commit is contained in:
Natty 2024-02-10 17:50:41 +01:00
parent 510e2215aa
commit 2fd5f4e076
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 4 additions and 4 deletions

View File

@ -13,13 +13,13 @@ return {
["K"] = {require("hover").hover, desc = "Show hover.nvim popup"},
["<C-B>"] = {":Telescope buffers<CR>", desc = "Show Telescope for open buffers"},
["<C-P>"] = {":Telescope registers<CR>", desc = "Show Telescope for register paste"},
["<C-A>"] = {dial.manipulate("increment", "normal"), desc = "Increment number"},
["<C-Y>"] = {dial.manipulate("decrement", "normal"), desc = "Decrement number"},
["<C-A>"] = {function () dial.manipulate("increment", "normal") end, desc = "Increment number"},
["<C-Y>"] = {function () dial.manipulate("decrement", "normal") end, desc = "Decrement number"},
["<C-X>"] = {false, desc = "Decrement number (unused)"}
},
v = {
["<C-A>"] = {dial.manipulate("increment", "visual"), desc = "Increment number"},
["<C-Y>"] = {dial.manipulate("decrement", "visual"), desc = "Decrement number"},
["<C-A>"] = {function () require("dial.map").manipulate("increment", "visual") end, desc = "Increment number"},
["<C-Y>"] = {function () require("dial.map").manipulate("decrement", "visual") end, desc = "Decrement number"},
["<C-X>"] = {false, desc = "Decrement number (unused)"}
},
i = {