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 function setup()
local grapple = require("grapple") local grapple = require("grapple")
grapple.setup() 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 () vim.keymap.set("n", "<leader>mm", function ()
if grapple.exists() then if grapple.exists() then
grapple.untag() grapple.untag()
@@ -11,18 +11,18 @@ local function setup()
end end
for i = 1, 9 do for i = 1, 9 do
local opts = { key = "m" .. i, } local opts = { name = "m" .. i, }
if not grapple.exists(opts) then if not grapple.exists(opts) then
grapple.tag(opts) grapple.tag(opts)
return return
end end
end end
grapple.tag({ key = "m?", }) grapple.tag({ name = "m?", })
end) end)
for i = 1, 9 do for i = 1, 9 do
local opts = { key = "m" .. i, } local opts = { name = "m" .. i, }
vim.keymap.set("n", "<leader>m" .. i, function () vim.keymap.set("n", "<leader>m" .. i, function ()
grapple.tag(opts) grapple.tag(opts)
+1 -4
View File
@@ -21,10 +21,7 @@ local function setup()
"diff", "diff",
{ "diagnostics", sources = { "nvim_lsp", }, }, { "diagnostics", sources = { "nvim_lsp", }, },
{ {
function () require("grapple").statusline,
local key = require("grapple").key()
return "[" .. key .. "]"
end,
cond = require("grapple").exists, cond = require("grapple").exists,
}, },
}, },