diff --git a/mappings.lua b/mappings.lua index ac6b5f4..16bc96a 100644 --- a/mappings.lua +++ b/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 = { + ["gg"] = { "LazyGit", "Open LazyGit" }, + }, +} + M.telescope = { plugin = true, diff --git a/plugins.lua b/plugins.lua index f4432c2..1ea2cbc 100644 --- a/plugins.lua +++ b/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 = { "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 = { "", "", "", "", '"', "'", "`", "c", "v", "g" }, + }, } return plugins