fix(grapple): update after grapple changes

This commit is contained in:
2024-03-04 23:33:50 +01:00
parent 0eedc4cee1
commit b909b87f2e
2 changed files with 5 additions and 8 deletions
+4 -4
View File
@@ -3,7 +3,7 @@
local function setup()
local grapple = require("grapple")
grapple.setup()
vim.keymap.set("n", "<leader>'", grapple.popup_tags)
vim.keymap.set("n", "<leader>'", grapple.toggle_tags)
vim.keymap.set("n", "<leader>mm", function ()
if grapple.exists() then
grapple.untag()
@@ -11,18 +11,18 @@ local function setup()
end
for i = 1, 9 do
local opts = { key = "m" .. i, }
local opts = { name = "m" .. i, }
if not grapple.exists(opts) then
grapple.tag(opts)
return
end
end
grapple.tag({ key = "m?", })
grapple.tag({ name = "m?", })
end)
for i = 1, 9 do
local opts = { key = "m" .. i, }
local opts = { name = "m" .. i, }
vim.keymap.set("n", "<leader>m" .. i, function ()
grapple.tag(opts)