fix(nvim): lazygit would always hide when typing q
This commit is contained in:
parent
424dfe8f69
commit
d9280a8e1b
1 changed files with 0 additions and 12 deletions
|
@ -113,15 +113,3 @@ ac("BufWritePre", {
|
||||||
vim.fn.mkdir(vim.fn.fnamemodify(file, ":p:h"), "p")
|
vim.fn.mkdir(vim.fn.fnamemodify(file, ":p:h"), "p")
|
||||||
end,
|
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", "<cmd>close<cr>", { buffer = true })
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue