From c62200f8b1b1df96d4b6cd55c3d1b895dbd4183e Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Mon, 10 Jun 2024 14:57:27 -0400 Subject: [PATCH] Add lazygit to neovim, add lazydocker --- modules/home-manager/common/all-cli.nix | 1 + .../files/nvim/lua/plugins/git-stuff.lua | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) 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, + }, }