markdown changes

This commit is contained in:
Oliver Hartmann 2025-03-29 00:13:08 +01:00
parent 0ccaeed2e5
commit 4e5b974350
3 changed files with 9 additions and 54 deletions

View File

@ -1,11 +0,0 @@
return {
'MeanderingProgrammer/markdown.nvim',
dependencies = {
'nvim-treesitter/nvim-treesitter',
'nvim-tree/nvim-web-devicons',
}, -- if you prefer nvim-web-devicons
config = function()
require('render-markdown').setup({})
end,
enabled = false
}

View File

@ -1,43 +0,0 @@
return {
'OXY2DEV/markview.nvim',
lazy = false,
config = function()
require('markview').setup({
preview = {
filetypes = {
'md',
'markdown',
'norg',
'rmd',
'org',
'vimwiki',
'typst',
'latex',
'quarto',
'Avante',
'codecompanion',
},
ignore_buftypes = {},
condition = function(buffer)
local ft, bt = vim.bo[buffer].ft, vim.bo[buffer].bt;
if bt == 'nofile' and ft == 'Avante' then
return true;
elseif bt == 'nofile' then
return false;
else
return true;
end
end
}
})
vim.api.nvim_create_autocmd('User', {
pattern = 'MarkviewAttach',
callback = function(event)
vim.keymap.set('n', '<CR>', require('markview').commands.open,
{ buffer = event.buf, desc = 'Open Link', silent = false })
end
})
end
};

View File

@ -0,0 +1,9 @@
return {
'MeanderingProgrammer/render-markdown.nvim',
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons
---@module 'render-markdown'
---@type render.md.UserConfig
opts = {
completions = { blink = { enabled = true } },
}
}