From b909b87f2e14f860af789e6edb5cd4c210fb5d44 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Mon, 4 Mar 2024 23:33:50 +0100 Subject: [PATCH] fix(grapple): update after grapple changes --- lua/plugins/grapple.lua | 8 ++++---- lua/plugins/lualine.lua | 5 +---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/lua/plugins/grapple.lua b/lua/plugins/grapple.lua index 1b950e0..bae315c 100644 --- a/lua/plugins/grapple.lua +++ b/lua/plugins/grapple.lua @@ -3,7 +3,7 @@ local function setup() local grapple = require("grapple") grapple.setup() - vim.keymap.set("n", "'", grapple.popup_tags) + vim.keymap.set("n", "'", grapple.toggle_tags) vim.keymap.set("n", "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", "m" .. i, function () grapple.tag(opts) diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index be8f099..aee95ec 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -21,10 +21,7 @@ local function setup() "diff", { "diagnostics", sources = { "nvim_lsp", }, }, { - function () - local key = require("grapple").key() - return "[" .. key .. "]" - end, + require("grapple").statusline, cond = require("grapple").exists, }, },