diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index d495a86..8d578ae 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -158,36 +158,35 @@ return { { "akinsho/toggleterm.nvim", opts = { + open_mapping = [[]], winbar = { enabled = true, }, }, - keys = { - { - "gg", - function() - local Terminal = require("toggleterm.terminal").Terminal - local lazygit = Terminal:new({ - cmd = "lazygit", - hidden = true, - direction = "float", - float_opts = { border = "double" }, - }) - lazygit:toggle() - end, - desc = "Lazygit", - }, - { - "", - function() - require("toggleterm").toggle() - end, - }, - }, }, { "christoomey/vim-tmux-navigator", config = false, }, + + { + "kdheepak/lazygit.nvim", + dependencies = { + "nvim-telescope/telescope.nvim", + "nvim-lua/plenary.nvim", + }, + keys = { + { + "gg", + function() + require("lazygit").lazygit() + end, + desc = "Lazygit", + }, + }, + config = function() + require("telescope").load_extension("lazygit") + end, + }, }