Make Comment.nvim and gitsigns configs overridable
This commit is contained in:
parent
1f4f614415
commit
b828b677bd
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue