From 5f4b92202ba769afe9b75130b0c7586d9761fb81 Mon Sep 17 00:00:00 2001 From: n-s-s-p-k Date: Wed, 22 Nov 2023 01:17:23 +0530 Subject: [PATCH] feat(projectManager): Added a project manager plugin & modified the status line --- lua/custom/chadrc.lua | 2 +- lua/custom/mappings.lua | 8 ++++++++ lua/custom/plugins.lua | 16 ++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/lua/custom/chadrc.lua b/lua/custom/chadrc.lua index 9257743..5d3ede2 100644 --- a/lua/custom/chadrc.lua +++ b/lua/custom/chadrc.lua @@ -10,7 +10,7 @@ M.ui = { hl_add = highlights.add, transparency = true, statusline = { - theme = "default" + theme = "vscode_colored" } } diff --git a/lua/custom/mappings.lua b/lua/custom/mappings.lua index d5d83d6..4fda7f4 100644 --- a/lua/custom/mappings.lua +++ b/lua/custom/mappings.lua @@ -54,4 +54,12 @@ M.harpoon = { }, }, } + + +-- project Manager +M.projects = { + n = { + ["fp"] = { " ProjectMgr", "Open Projects"} + }, +} return M diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index 502b63f..dc0a757 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -72,6 +72,22 @@ local plugins = { "ThePrimeagen/harpoon", cmd = "Harpoon", }, + + -- project management + { + "charludo/projectmgr.nvim", + lazy = false, -- important! + config = function() + require("projectmgr").setup({ + -- autogit = { + -- enabled = true, + -- command = "git pull --ff-only > .git/fastforward.log 2>&1", + -- }, + session = { enabled = true, file = ".git/Session.vim" }, + }) + end, + }, + -- for golang -- generate the boiler plate go code {