fix(grapple): update after grapple changes
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user