diff options
author | Arnold Sommerfeld <sommerfeld@strisemarx.com> | 2024-03-13 13:12:37 +0000 |
---|---|---|
committer | Arnold Sommerfeld <sommerfeld@strisemarx.com> | 2024-03-13 13:12:37 +0000 |
commit | 2070b7a9c00dd8b7b9ea7ed15f9d2718a55c5890 (patch) | |
tree | 46b53f980896daf9c2460d80b6a9b6675dec5c61 /home/.config/nvim/lua/custom/plugins/init.lua | |
parent | dc064b765d39605e633582304a9a272ca3290b7d (diff) | |
download | dotfiles-2070b7a9c00dd8b7b9ea7ed15f9d2718a55c5890.tar.gz dotfiles-2070b7a9c00dd8b7b9ea7ed15f9d2718a55c5890.tar.bz2 dotfiles-2070b7a9c00dd8b7b9ea7ed15f9d2718a55c5890.zip |
Improve markdown-preview config
Diffstat (limited to 'home/.config/nvim/lua/custom/plugins/init.lua')
-rw-r--r-- | home/.config/nvim/lua/custom/plugins/init.lua | 11 |
1 files 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", { |