From e2836f519fdda82ad4f47fe0fceee7bbb7be689a Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Tue, 10 Sep 2024 10:20:13 +0200 Subject: [PATCH] Change tagbar behavior to support both operation modes --- lua/plugconfig.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/plugconfig.lua b/lua/plugconfig.lua index 3740149..0065b24 100644 --- a/lua/plugconfig.lua +++ b/lua/plugconfig.lua @@ -136,4 +136,6 @@ require("lspconfig").als.setup({ }) -- Tagbar -vim.keymap.set("n", "", ":TagbarToggle") +vim.keymap.set("n", "", ":TagbarToggle") -- permanent window +vim.keymap.set("n", "", ":TagbarOpenAutoClose") -- select, jump, close +vim.g.tagbar_autoclose = 0 -- do not autoclose after selection