Add lazygit plugin and config + telescope integration
This commit is contained in:
parent
5409df6d47
commit
7b80a95c32
|
@ -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",
|
||||
|
|
|
@ -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>")
|
||||
|
|
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 "command_center"
|
||||
require("telescope").load_extension "http"
|
||||
require("telescope").load_extension "lazygit"
|
||||
end,
|
||||
},
|
||||
-- Additional telescope extensions
|
||||
|
|
Loading…
Reference in a new issue