From 4e7f630691ce532dfd7b14c09081fc17219c6c7f Mon Sep 17 00:00:00 2001 From: Zeioth Date: Fri, 26 May 2023 03:42:32 +0200 Subject: [PATCH 1/3] Added: Markmap.nvim --- .../markdown-and-latex/markmap/markmap-nvim.lua | 13 +++++++++++++ .../markdown-and-latex/markmap/readme.md | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua create mode 100644 lua/astrocommunity/markdown-and-latex/markmap/readme.md diff --git a/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua b/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua new file mode 100644 index 000000000..fa49e417b --- /dev/null +++ b/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua @@ -0,0 +1,13 @@ +-- [markdown markmap] +-- https://github.com/Zeioth/markmap.nvim +return { + "Zeioth/markmap.nvim", + build = "yarn global add markmap-cli", + cmd = { "MarkmapOpen", "MarkmapSave", "MarkmapWatch", "MarkmapWatchStop" }, + opts = { + html_output = "/tmp/markmap.html", + hide_toolbar = "false", + grace_period = 3600000, + }, + config = function(_, opts) require("markmap").setup(opts) end, +} diff --git a/lua/astrocommunity/markdown-and-latex/markmap/readme.md b/lua/astrocommunity/markdown-and-latex/markmap/readme.md new file mode 100644 index 000000000..9bd6317c3 --- /dev/null +++ b/lua/astrocommunity/markdown-and-latex/markmap/readme.md @@ -0,0 +1,4 @@ +# markmap.nvim +Visualize your Markdown as mindmaps with markmap. + +**Repository:** From 03dda0bb00490cce602cd1583831a2cb0f7fabd8 Mon Sep 17 00:00:00 2001 From: Zeioth Date: Fri, 26 May 2023 04:06:19 +0200 Subject: [PATCH 2/3] Let's not give the html_output option, so it's detected automatically for windows too. --- lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua b/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua index fa49e417b..886996c22 100644 --- a/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua +++ b/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua @@ -5,9 +5,7 @@ return { build = "yarn global add markmap-cli", cmd = { "MarkmapOpen", "MarkmapSave", "MarkmapWatch", "MarkmapWatchStop" }, opts = { - html_output = "/tmp/markmap.html", hide_toolbar = "false", - grace_period = 3600000, }, config = function(_, opts) require("markmap").setup(opts) end, } From bd78832448f4daf2d438f25273fdf257073ab73c Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Fri, 26 May 2023 10:18:39 -0400 Subject: [PATCH 3/3] Use `npm` instead of `yarn` because more AstroNvim users have it --- .../markdown-and-latex/markmap/{readme.md => README.md} | 5 ++++- .../markdown-and-latex/markmap/markmap-nvim.lua | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) rename lua/astrocommunity/markdown-and-latex/markmap/{readme.md => README.md} (60%) diff --git a/lua/astrocommunity/markdown-and-latex/markmap/readme.md b/lua/astrocommunity/markdown-and-latex/markmap/README.md similarity index 60% rename from lua/astrocommunity/markdown-and-latex/markmap/readme.md rename to lua/astrocommunity/markdown-and-latex/markmap/README.md index 9bd6317c3..1312805bf 100644 --- a/lua/astrocommunity/markdown-and-latex/markmap/readme.md +++ b/lua/astrocommunity/markdown-and-latex/markmap/README.md @@ -1,4 +1,7 @@ # markmap.nvim -Visualize your Markdown as mindmaps with markmap. **Repository:** + +Visualize your Markdown as mindmaps with markmap. + +**Note:** This will install `markmap-cli` globally on your system with `npm`. diff --git a/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua b/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua index 886996c22..e7d334aef 100644 --- a/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua +++ b/lua/astrocommunity/markdown-and-latex/markmap/markmap-nvim.lua @@ -2,10 +2,9 @@ -- https://github.com/Zeioth/markmap.nvim return { "Zeioth/markmap.nvim", - build = "yarn global add markmap-cli", + build = "npm install -g markmap-cli", cmd = { "MarkmapOpen", "MarkmapSave", "MarkmapWatch", "MarkmapWatchStop" }, opts = { hide_toolbar = "false", }, - config = function(_, opts) require("markmap").setup(opts) end, }