markdown changes
This commit is contained in:
parent
0ccaeed2e5
commit
4e5b974350
@ -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
|
||||
}
|
@ -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
|
||||
};
|
9
lua/plugins/render-markdown.lua
Normal file
9
lua/plugins/render-markdown.lua
Normal 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 } },
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user