From b828b677bd88bee789f9ce0880d1f6dbbf30b555 Mon Sep 17 00:00:00 2001 From: siduck Date: Wed, 1 Jun 2022 17:27:21 +0530 Subject: [PATCH] Make Comment.nvim and gitsigns configs overridable --- lua/plugins/configs/others.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index 3447d53f..9884a118 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -111,7 +111,9 @@ M.comment = function() return end - nvim_comment.setup() + local options = {} + options = load_override(options, "numToStr/Comment.nvim") + nvim_comment.setup(options) end M.luasnip = function() @@ -261,8 +263,7 @@ M.gitsigns = function() if not present then return end - - gitsigns.setup { + local options = { signs = { add = { hl = "DiffAdd", text = "│", numhl = "GitSignsAddNr" }, change = { hl = "DiffChange", text = "│", numhl = "GitSignsChangeNr" }, @@ -271,6 +272,9 @@ M.gitsigns = function() changedelete = { hl = "DiffChangeDelete", text = "~", numhl = "GitSignsChangeNr" }, }, } + options = load_override(options, "lewis6991/gitsigns.nvim") + + gitsigns.setup(options) end return M