lazygit works
This commit is contained in:
parent
74dfca97f6
commit
5195a38b1d
10
mappings.lua
10
mappings.lua
|
@ -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,
|
||||
|
||||
|
|
18
plugins.lua
18
plugins.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue