Make Comment.nvim and gitsigns configs overridable

This commit is contained in:
siduck 2022-06-01 17:27:21 +05:30
parent 1f4f614415
commit b828b677bd
1 changed files with 7 additions and 3 deletions

View File

@ -111,7 +111,9 @@ M.comment = function()
return return
end end
nvim_comment.setup() local options = {}
options = load_override(options, "numToStr/Comment.nvim")
nvim_comment.setup(options)
end end
M.luasnip = function() M.luasnip = function()
@ -261,8 +263,7 @@ M.gitsigns = function()
if not present then if not present then
return return
end end
local options = {
gitsigns.setup {
signs = { signs = {
add = { hl = "DiffAdd", text = "", numhl = "GitSignsAddNr" }, add = { hl = "DiffAdd", text = "", numhl = "GitSignsAddNr" },
change = { hl = "DiffChange", text = "", numhl = "GitSignsChangeNr" }, change = { hl = "DiffChange", text = "", numhl = "GitSignsChangeNr" },
@ -271,6 +272,9 @@ M.gitsigns = function()
changedelete = { hl = "DiffChangeDelete", text = "~", numhl = "GitSignsChangeNr" }, changedelete = { hl = "DiffChangeDelete", text = "~", numhl = "GitSignsChangeNr" },
}, },
} }
options = load_override(options, "lewis6991/gitsigns.nvim")
gitsigns.setup(options)
end end
return M return M