From 2070b7a9c00dd8b7b9ea7ed15f9d2718a55c5890 Mon Sep 17 00:00:00 2001 From: Arnold Sommerfeld Date: Wed, 13 Mar 2024 13:12:37 +0000 Subject: Improve markdown-preview config --- home/.config/nvim/lua/custom/plugins/init.lua | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/home/.config/nvim/lua/custom/plugins/init.lua b/home/.config/nvim/lua/custom/plugins/init.lua index 9f2222b..3483705 100644 --- a/home/.config/nvim/lua/custom/plugins/init.lua +++ b/home/.config/nvim/lua/custom/plugins/init.lua @@ -108,16 +108,9 @@ return { }, { "iamcco/markdown-preview.nvim", + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, build = "cd app && yarn install", - ft = "markdown", - config = function() - vim.api.nvim_command([[ - function! g:OpenNewWindow(url) - silent exec "Start! librewolf --new-window " . a:url - endfunction - ]]) - vim.g.mkdp_browserfunc = "g:OpenNewWindow" - end, + ft = { "markdown" }, }, "gpanders/editorconfig.nvim", { -- cgit v1.2.3-70-g09d2