diff --git a/config/nvim/lua/config/dashboard.lua b/config/nvim/lua/config/dashboard.lua index 728348ac..d579c4c8 100644 --- a/config/nvim/lua/config/dashboard.lua +++ b/config/nvim/lua/config/dashboard.lua @@ -17,10 +17,18 @@ return { { icon = " ", desc = "Neotree", - group = "Label", + group = "Files", action = "Neotree", key = "n", }, + { + icon = " ", + icon_hl = "@variable", + desc = "Git", + group = "Label", + action = "LazyGit", + key = "g", + }, { icon = " ", desc = "Mason", diff --git a/config/nvim/lua/config/keymaps.lua b/config/nvim/lua/config/keymaps.lua index 9840f5ee..10b6f016 100644 --- a/config/nvim/lua/config/keymaps.lua +++ b/config/nvim/lua/config/keymaps.lua @@ -19,10 +19,11 @@ vim.keymap.set("n", "fz", "Telescope current_buffer_fuzzy_find" -- Neotree vim.keymap.set("n", "n", "Neotree toggle") -vim.keymap.set("n", "g", "Neotree git_status") -vim.keymap.set("n", "b", "Neotree buffers") vim.keymap.set("n", "\\", "Neotree reveal") +-- LazyGit +vim.keymap.set("n", "gg", "LazyGit") + -- diffview vim.keymap.set("n", "do", "DiffviewOpen") vim.keymap.set("n", "dc", "DiffviewClose") diff --git a/config/nvim/lua/plugins/lazygit.lua b/config/nvim/lua/plugins/lazygit.lua new file mode 100644 index 00000000..ab81ad41 --- /dev/null +++ b/config/nvim/lua/plugins/lazygit.lua @@ -0,0 +1,4 @@ +return { + "kdheepak/lazygit.nvim", + cmd = { "LazyGit", "LazyGitConfig" }, +} diff --git a/config/nvim/lua/plugins/telescope.lua b/config/nvim/lua/plugins/telescope.lua index 612d8ddf..2864787e 100644 --- a/config/nvim/lua/plugins/telescope.lua +++ b/config/nvim/lua/plugins/telescope.lua @@ -16,6 +16,7 @@ return { require("telescope").load_extension "git_diffs" require("telescope").load_extension "command_center" require("telescope").load_extension "http" + require("telescope").load_extension "lazygit" end, }, -- Additional telescope extensions