diff --git a/lua/plugins/markview.lua b/lua/plugins/markview.lua index 185fc5c..ce79419 100644 --- a/lua/plugins/markview.lua +++ b/lua/plugins/markview.lua @@ -2,6 +2,36 @@ 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)