From b43e8790cad2878cc687a8de16d8c09f6b89be09 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 23 Dec 2023 00:15:08 +0100 Subject: [PATCH] [lualine] Add grapple to statusline --- lua/plugins/lualine.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index 151f2e1..86146c1 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -34,6 +34,13 @@ local function setup() { "filename", path = 1, }, "diff", { "diagnostics", sources = { "nvim_lsp", }, }, + { + function () + local key = require("grapple").key() + return " [" .. key .. "]" + end, + cond = require("grapple").exists, + }, }, lualine_x = { "bo:filetype",