diff --git a/lazy-lock.json b/lazy-lock.json index a4ba95e..bf72c6f 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -84,7 +84,6 @@ "rose-pine": { "branch": "main", "commit": "d396005db5bbd1d4ec7772a7c96c96f4c4802328" }, "rustaceanvim": { "branch": "master", "commit": "047f9c9d8cd2861745eb9de6c1570ee0875aa795" }, "silicon.lua": { "branch": "main", "commit": "f1387c8e2e69743899d6da6d4bd0e42be5ac5fa0" }, - "smart-open.nvim": { "branch": "main", "commit": "7770b01ce4d551c143d7ec8589879320796621b9" }, "snipe.nvim": { "branch": "main", "commit": "854a47c970413405361487c13e2b1e9aa9a3696e" }, "sqlite.lua": { "branch": "master", "commit": "d0ffd703b56d090d213b497ed4eb840495f14a11" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" }, diff --git a/lua/config/lazygit.lua b/lua/config/lazygit.lua index 6f866a3..33419a8 100644 --- a/lua/config/lazygit.lua +++ b/lua/config/lazygit.lua @@ -1,31 +1,31 @@ -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 +-- 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 diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua new file mode 100644 index 0000000..e9d2819 --- /dev/null +++ b/lua/plugins/snacks.lua @@ -0,0 +1,15 @@ +return { + "folke/snacks.nvim", + priority = 1000, + lazy = false, + opts = { + bigfile = { enabled = false }, + notifier = { enabled = false }, + quickfile = { enabled = false }, + statuscolumn = { enabled = false }, + words = { enabled = false }, + }, + keys = { + { "z", "lua Snacks.lazygit()", desc = "LazyGit" }, + }, +}