diff --git a/modules/home-manager/common/all-cli.nix b/modules/home-manager/common/all-cli.nix index 1f80631..4a7380a 100644 --- a/modules/home-manager/common/all-cli.nix +++ b/modules/home-manager/common/all-cli.nix @@ -25,6 +25,7 @@ in { httpie hub jq + lazydocker lazygit lua-language-server minicom diff --git a/modules/home-manager/files/nvim/lua/plugins/git-stuff.lua b/modules/home-manager/files/nvim/lua/plugins/git-stuff.lua index 8a35077..3211630 100644 --- a/modules/home-manager/files/nvim/lua/plugins/git-stuff.lua +++ b/modules/home-manager/files/nvim/lua/plugins/git-stuff.lua @@ -12,4 +12,27 @@ return { { "tpope/vim-fugitive", }, + { + "kdheepak/lazygit.nvim", + cmd = { + "LazyGit", + "LazyGitConfig", + "LazyGitCurrentFile", + "LazyGitFilter", + "LazyGitFilterCurrentFile", + }, + -- optional for floating window border decoration + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope.nvim", + }, + -- setting the keybinding for LazyGit with 'keys' is recommended in + -- order to load the plugin when the command is run for the first time + keys = { + { "lg", "LazyGit", desc = "LazyGit" }, + }, + config = function() + require("telescope").load_extension("lazygit") + end, + }, }