From d9280a8e1bea11a4452ce80a3b3245a39ae106ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Mon, 23 Jun 2025 02:16:19 +0200 Subject: [PATCH] fix(nvim): lazygit would always hide when typing q --- .config/nvim/lua/config/autocmds.lua | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.config/nvim/lua/config/autocmds.lua b/.config/nvim/lua/config/autocmds.lua index 556f24ec..57fd6eba 100644 --- a/.config/nvim/lua/config/autocmds.lua +++ b/.config/nvim/lua/config/autocmds.lua @@ -113,15 +113,3 @@ ac("BufWritePre", { vim.fn.mkdir(vim.fn.fnamemodify(file, ":p:h"), "p") end, }) - --- Toggle lazygit instead of closing -ac("TermOpen", { - pattern = "*", - callback = function() - local term_title = vim.b.term_title - if term_title and term_title:match("lazygit") then - -- Create lazygit specific mappings - vim.keymap.set("t", "q", "close", { buffer = true }) - end - end, -})