lazygit: use wezterm to open lazygit
This commit is contained in:
parent
b2aaaa70d6
commit
c9ceb750d5
|
@ -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("t", "<c-d>", "<C-\\><C-n>", { silent = true, desc = "Exit Terminal Mode" })
|
||||||
|
|
||||||
vim.keymap.set(
|
vim.keymap.set("n", "<leader>z", "<cmd>silent !wezterm start --cwd . -- lazygit<cr>", { desc = "Open Lazygit" })
|
||||||
"n",
|
|
||||||
"<leader>z",
|
|
||||||
"<cmd>!zellij run --close-on-exit --in-place --name lazygit -- lazygit<cr>",
|
|
||||||
{ desc = "Open Lazygit" }
|
|
||||||
)
|
|
||||||
|
|
|
@ -4,6 +4,11 @@ return {
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"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,
|
enabled = false,
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>z", "<cmd>LazyGit<cr>", desc = "Symbols Outline" },
|
{ "<leader>z", "<cmd>LazyGit<cr>", desc = "Symbols Outline" },
|
||||||
|
|
Loading…
Reference in a new issue