From ade996d26d8dc2a279951a30d761e25199f21c61 Mon Sep 17 00:00:00 2001 From: Folkert Kevelam Date: Sun, 31 Aug 2025 21:21:35 +0200 Subject: [PATCH] Add base command --- lua/MarkdownPreviewer/app.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/MarkdownPreviewer/app.lua b/lua/MarkdownPreviewer/app.lua index 4ac670e..ce05f25 100644 --- a/lua/MarkdownPreviewer/app.lua +++ b/lua/MarkdownPreviewer/app.lua @@ -47,6 +47,14 @@ function app:init(on_exit) }) end +function app:base(content) + if self.channel == nil then + return + end + + chansend(self.channel, Message({base = content})) +end + function app:show(content) if self.channel == nil then return