Add nvim render markdown

This commit is contained in:
Martin
2025-07-24 19:50:58 +02:00
parent 2021268b73
commit af49129b2a
2 changed files with 20 additions and 8 deletions

View File

@ -46,13 +46,17 @@ cmp.setup({
['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping(function(fallback)
if cmp.visible() then
if ls.expandable() then
ls.expand()
else
cmp.confirm({
select = true,
})
end
if cmp.get_selected_entry() then
if ls.expandable() then
ls.expand()
else
cmp.confirm({
select = false,
})
end
else
fallback()
end
else
fallback()
end
@ -426,3 +430,10 @@ require("obsidian").setup({
end,
daily_notes = daily_notes,
})
require('render-markdown').setup({
enabled = true,
file_types = { 'markdown'},
completions = { lsp = { enabled = true } },
render_modes = { 'n', 'c', 't' },
})