From 4e5b9743505f3b67274ee3c3ff87830ae561c834 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sat, 29 Mar 2025 00:13:08 +0100 Subject: [PATCH] markdown changes --- lua/plugins/markdown.lua | 11 --------- lua/plugins/markview.lua | 43 --------------------------------- lua/plugins/render-markdown.lua | 9 +++++++ 3 files changed, 9 insertions(+), 54 deletions(-) delete mode 100644 lua/plugins/markdown.lua delete mode 100644 lua/plugins/markview.lua create mode 100644 lua/plugins/render-markdown.lua diff --git a/lua/plugins/markdown.lua b/lua/plugins/markdown.lua deleted file mode 100644 index 60f8181..0000000 --- a/lua/plugins/markdown.lua +++ /dev/null @@ -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 -} diff --git a/lua/plugins/markview.lua b/lua/plugins/markview.lua deleted file mode 100644 index 75f11a9..0000000 --- a/lua/plugins/markview.lua +++ /dev/null @@ -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', '', require('markview').commands.open, - { buffer = event.buf, desc = 'Open Link', silent = false }) - end - }) - end -}; diff --git a/lua/plugins/render-markdown.lua b/lua/plugins/render-markdown.lua new file mode 100644 index 0000000..125da72 --- /dev/null +++ b/lua/plugins/render-markdown.lua @@ -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 } }, + } +}