lazygit works

This commit is contained in:
Christoph J. Scherr 2024-01-19 19:39:18 +01:00
parent 74dfca97f6
commit 5195a38b1d
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
2 changed files with 25 additions and 3 deletions

View File

@ -1,6 +1,5 @@
---@type MappingsTable
local M = {
}
local M = {}
M.disabled = {
n = {
@ -10,6 +9,13 @@ M.disabled = {
},
}
M.lazygit = {
plugin = true,
n = {
["<leader>gg"] = { "<cmd>LazyGit<CR>", "Open LazyGit" },
},
}
M.telescope = {
plugin = true,

View File

@ -1,4 +1,5 @@
local overrides = require "custom.configs.overrides"
local utils = require "core.utils"
---@type NvPluginSpec[]
local plugins = {
@ -12,7 +13,6 @@ local plugins = {
require "custom.configs.lspconfig"
end, -- Override to setup mason-lspconfig
},
-- override plugin configs
{
"williamboman/mason.nvim",
@ -52,6 +52,22 @@ local plugins = {
require("leap").create_default_mappings()
end,
},
{
"kdheepak/lazygit.nvim",
keys = { "<leader>gg" },
cmd = "LazyGit",
-- optional for floating window border decoration
dependencies = {
"nvim-lua/plenary.nvim",
},
init = function()
require("core.utils").load_mappings "lazygit"
end,
},
{
"folke/which-key.nvim",
keys = { "<leader>", "<localleader>", "<c-r>", "<c-w>", '"', "'", "`", "c", "v", "g" },
},
}
return plugins