Add lazygit plugin and config + telescope integration
This commit is contained in:
parent
5409df6d47
commit
7b80a95c32
|
@ -17,10 +17,18 @@ return {
|
||||||
{
|
{
|
||||||
icon = " ",
|
icon = " ",
|
||||||
desc = "Neotree",
|
desc = "Neotree",
|
||||||
group = "Label",
|
group = "Files",
|
||||||
action = "Neotree",
|
action = "Neotree",
|
||||||
key = "n",
|
key = "n",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon = " ",
|
||||||
|
icon_hl = "@variable",
|
||||||
|
desc = "Git",
|
||||||
|
group = "Label",
|
||||||
|
action = "LazyGit",
|
||||||
|
key = "g",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
icon = " ",
|
icon = " ",
|
||||||
desc = "Mason",
|
desc = "Mason",
|
||||||
|
|
|
@ -19,10 +19,11 @@ vim.keymap.set("n", "<leader>fz", "<cmd>Telescope current_buffer_fuzzy_find<cr>"
|
||||||
|
|
||||||
-- Neotree
|
-- Neotree
|
||||||
vim.keymap.set("n", "<leader>n", "<cmd>Neotree toggle<cr>")
|
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>")
|
vim.keymap.set("n", "<leader>\\", "<cmd>Neotree reveal<cr>")
|
||||||
|
|
||||||
|
-- LazyGit
|
||||||
|
vim.keymap.set("n", "<leader>gg", "<cmd>LazyGit<cr>")
|
||||||
|
|
||||||
-- diffview
|
-- diffview
|
||||||
vim.keymap.set("n", "<leader>do", "<cmd>DiffviewOpen<cr>")
|
vim.keymap.set("n", "<leader>do", "<cmd>DiffviewOpen<cr>")
|
||||||
vim.keymap.set("n", "<leader>dc", "<cmd>DiffviewClose<cr>")
|
vim.keymap.set("n", "<leader>dc", "<cmd>DiffviewClose<cr>")
|
||||||
|
|
4
config/nvim/lua/plugins/lazygit.lua
Normal file
4
config/nvim/lua/plugins/lazygit.lua
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
return {
|
||||||
|
"kdheepak/lazygit.nvim",
|
||||||
|
cmd = { "LazyGit", "LazyGitConfig" },
|
||||||
|
}
|
|
@ -16,6 +16,7 @@ return {
|
||||||
require("telescope").load_extension "git_diffs"
|
require("telescope").load_extension "git_diffs"
|
||||||
require("telescope").load_extension "command_center"
|
require("telescope").load_extension "command_center"
|
||||||
require("telescope").load_extension "http"
|
require("telescope").load_extension "http"
|
||||||
|
require("telescope").load_extension "lazygit"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- Additional telescope extensions
|
-- Additional telescope extensions
|
||||||
|
|
Loading…
Reference in a new issue