lazygit: use wezterm to open lazygit

This commit is contained in:
Tigor Hutasuhut 2024-08-14 10:58:46 +07:00
parent b2aaaa70d6
commit c9ceb750d5
2 changed files with 6 additions and 6 deletions

View file

@ -6,9 +6,4 @@ require "config.neovide"
vim.keymap.set("t", "<c-d>", "<C-\\><C-n>", { silent = true, desc = "Exit Terminal Mode" })
vim.keymap.set(
"n",
"<leader>z",
"<cmd>!zellij run --close-on-exit --in-place --name lazygit -- lazygit<cr>",
{ desc = "Open Lazygit" }
)
vim.keymap.set("n", "<leader>z", "<cmd>silent !wezterm start --cwd . -- lazygit<cr>", { desc = "Open Lazygit" })

View file

@ -4,6 +4,11 @@ return {
dependencies = {
"nvim-lua/plenary.nvim",
},
setup = function()
if vim.fn.executable "nvr" == 1 then
vim.env.GIT_EDITOR = [[nvr -cc split --remote-wait +'set bufhidden=wipe']]
end
end,
enabled = false,
keys = {
{ "<leader>z", "<cmd>LazyGit<cr>", desc = "Symbols Outline" },