From fa8b2685680c07a14e789fbd849dcf9de3cbd098 Mon Sep 17 00:00:00 2001 From: David Bell Date: Tue, 4 Apr 2023 19:08:21 +0100 Subject: [PATCH] Add markdown plugins --- lua/custom/plugins/markdown-preview.lua | 7 +++++++ lua/custom/plugins/peek.lua | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 lua/custom/plugins/markdown-preview.lua diff --git a/lua/custom/plugins/markdown-preview.lua b/lua/custom/plugins/markdown-preview.lua new file mode 100644 index 00000000..fcf6faa4 --- /dev/null +++ b/lua/custom/plugins/markdown-preview.lua @@ -0,0 +1,7 @@ +return { + "iamcco/markdown-preview.nvim", + ft = "markdown", + build = function() + vim.fn["mkdp#util#install"]() + end, +} diff --git a/lua/custom/plugins/peek.lua b/lua/custom/plugins/peek.lua index a35970df..895be09c 100644 --- a/lua/custom/plugins/peek.lua +++ b/lua/custom/plugins/peek.lua @@ -4,12 +4,12 @@ return { build = "deno task --quiet build:fast", init = function() require("peek").setup({ - auto_load = false, + auto_load = true, close_on_bdelete = true, syntax = false, - theme = "dark", + theme = "light", update_on_change = true, - app = {'google-stable-chrome', '--new-window'}, + app = 'webview', filetype = {"markdown"}, throttle_at = 200000, throttle_time = "auto",