Skip to content

Commit 54a3f3f

Browse files
committed
fix(nvim): fix render-markdown being disabled in gitcommit files
MeanderingProgrammer/render-markdown.nvim#141
1 parent 65dc2fe commit 54a3f3f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.config/nvim/lua/plugins/markdown.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
---@module "lazy"
33

44
---@type LazySpec
5-
65
return {
76
"MeanderingProgrammer/render-markdown.nvim",
87
ft = function(_, ft)
9-
vim.list_extend(ft, { "gitcommit" })
8+
return vim.list_extend(ft, { "gitcommit" })
109
end,
1110
---@param opts render.md.Config
1211
opts = function(_, opts)
@@ -15,6 +14,6 @@ return {
1514
vim.list_extend(opts.file_types, { "gitcommit" })
1615
require("luasnip").filetype_extend("gitcommit", { "markdown" })
1716

18-
return {}
17+
return opts
1918
end,
2019
}

0 commit comments

Comments
 (0)