Add lazygit plugin and config + telescope integration

This commit is contained in:
Evie Litherland-Smith 2023-02-21 07:59:52 +00:00
parent 5409df6d47
commit 7b80a95c32
4 changed files with 17 additions and 3 deletions

View file

@ -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",

View file

@ -19,10 +19,11 @@ vim.keymap.set("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<cr>"
-- Neotree
vim.keymap.set("n", "<leader>n", "<cmd>Neotree toggle<cr>")
vim.keymap.set("n", "<leader>g", "<cmd>Neotree git_status<cr>")
vim.keymap.set("n", "<leader>b", "<cmd>Neotree buffers<cr>")
vim.keymap.set("n", "<leader>\\", "<cmd>Neotree reveal<cr>")
-- LazyGit
vim.keymap.set("n", "<leader>gg", "<cmd>LazyGit<cr>")
-- diffview
vim.keymap.set("n", "<leader>do", "<cmd>DiffviewOpen<cr>")
vim.keymap.set("n", "<leader>dc", "<cmd>DiffviewClose<cr>")

View file

@ -0,0 +1,4 @@
return {
"kdheepak/lazygit.nvim",
cmd = { "LazyGit", "LazyGitConfig" },
}

View file

@ -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