fix(lazygit): allow overriding default terminal options

This commit is contained in:
Folke Lemaitre 2024-03-26 13:42:53 +01:00
parent 4796dba8f7
commit bfe8c608a3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -22,10 +22,10 @@ vim.api.nvim_create_autocmd("ColorScheme", {
-- Opens lazygit -- Opens lazygit
---@param opts? LazyTermOpts | {args?: string[]} ---@param opts? LazyTermOpts | {args?: string[]}
function M.open(opts) function M.open(opts)
opts = vim.tbl_deep_extend("force", {}, opts or {}, { opts = vim.tbl_deep_extend("force", {}, {
esc_esc = false, esc_esc = false,
ctrl_hjkl = false, ctrl_hjkl = false,
}) }, opts or {})
local cmd = { "lazygit" } local cmd = { "lazygit" }
if vim.g.lazygit_theme then if vim.g.lazygit_theme then
if M.dirty then if M.dirty then