From 7cfd09db78fe0195edd3dd69b3f0c30a64a128c3 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Thu, 7 Nov 2024 20:15:23 +0700 Subject: [PATCH] lazygit: remove lazygit config --- lua/config/keymaps.lua | 4 ---- lua/config/lazygit.lua | 31 ------------------------------- 2 files changed, 35 deletions(-) delete mode 100644 lua/config/lazygit.lua diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 82c12e7..137e66c 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -6,10 +6,6 @@ require "config.neovide" vim.keymap.set("t", "", "", { silent = true, desc = "Exit Terminal Mode" }) -if vim.fn.executable "lazygit" == 1 then - require "config.lazygit" -end - if vim.env.HYPRLAND_INSTANCE_SIGNATURE ~= nil and vim.fn.executable "footclient" == 1 then require "config.terminal" end diff --git a/lua/config/lazygit.lua b/lua/config/lazygit.lua deleted file mode 100644 index 33419a8..0000000 --- a/lua/config/lazygit.lua +++ /dev/null @@ -1,31 +0,0 @@ --- if vim.env.ZELLIJ ~= nil and not vim.g.neovide then --- -- currently running inside zellij session and not inside neovide --- vim.keymap.set("n", "z", function() --- local cwd = vim.fn.expand "%:p:h" --- vim.system { --- "zellij", --- "run", --- "--close-on-exit", --- "--cwd", --- cwd, --- "--in-place", --- "--", --- "lazygit", --- } --- end, { desc = "Open Lazygit (Zellij)" }) --- elseif vim.env.HYPRLAND_INSTANCE_SIGNATURE ~= nil and vim.fn.executable "foot" == 1 then --- vim.keymap.set("n", "z", function() --- vim.system { --- "hyprctl", --- "dispatch", --- "exec", --- "--", --- "foot", --- "--app-id=lazygit", --- "--title=lazygit", --- "--working-directory=" .. vim.fn.getcwd(), --- "--", --- "lazygit", --- } --- end, { desc = "Open Lazygit (Foot)" }) --- end