nvim: Add markmap to build mindmaps
Added markmap plugin to make mindmaps from markdown. Uses headings for leaves, and works pretty automatically. Testing its functionality longer-term for now.
This commit is contained in:
parent
065488e57d
commit
444676caac
1 changed files with 28 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
||||||
local writing_ft = { "quarto", "pandoc", "markdown", "text", "tex" }
|
local writing_ft = { "quarto", "pandoc", "markdown", "text", "tex" }
|
||||||
|
|
||||||
return {
|
local prose_plugs = {
|
||||||
-- UI improvements
|
-- UI improvements
|
||||||
-- provide distraction free writing
|
-- provide distraction free writing
|
||||||
{ "folke/zen-mode.nvim", config = true, event = "VeryLazy" },
|
{ "folke/zen-mode.nvim", config = true, event = "VeryLazy" },
|
||||||
|
@ -12,10 +12,10 @@ return {
|
||||||
require("wrapping").setup({
|
require("wrapping").setup({
|
||||||
create_keymappings = false,
|
create_keymappings = false,
|
||||||
notify_on_switch = false,
|
notify_on_switch = false,
|
||||||
softener = { markdown = true, text = true, asciidoc = true }
|
softener = { markdown = true, text = true, asciidoc = true },
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
lazy = false
|
lazy = false,
|
||||||
},
|
},
|
||||||
-- displays prettier headlines mimicking the ones in emacs orgmode
|
-- displays prettier headlines mimicking the ones in emacs orgmode
|
||||||
{
|
{
|
||||||
|
@ -60,14 +60,29 @@ return {
|
||||||
|
|
||||||
-- syntax highlighting for markdown criticmarkup (comments, additions, ...)
|
-- syntax highlighting for markdown criticmarkup (comments, additions, ...)
|
||||||
{ "vim-pandoc/vim-criticmarkup", ft = writing_ft },
|
{ "vim-pandoc/vim-criticmarkup", ft = writing_ft },
|
||||||
-- inline display of latex formulas
|
|
||||||
-- TODO always demands latex treesitter to be installed even if it is
|
-- create mindmaps from your markdown
|
||||||
-- TODO always turns softwrapped lines off on exiting insert mode
|
{
|
||||||
--{
|
"Zeioth/markmap.nvim",
|
||||||
--"jbyuki/nabla.nvim",
|
cmd = { "MarkmapOpen", "MarkmapSave", "MarkmapWatch", "MarkmapWatchStop" },
|
||||||
--ft = writing_ft,
|
config = true,
|
||||||
--config = function()
|
},
|
||||||
--require("nabla").enable_virt({ autogen = true, silent = true })
|
|
||||||
--end,
|
-- cite as you write from papis databases
|
||||||
--},
|
-- ADDITIONAL DEPENDENCIES: papis and yq in shell env
|
||||||
|
-- {
|
||||||
|
-- "jghauser/papis.nvim",
|
||||||
|
-- cond = vim.fn.executable("papis") == 1 and vim.fn.executable("yq") == 1,
|
||||||
|
-- ft = writing_ft,
|
||||||
|
-- dependencies = {
|
||||||
|
-- "kkharji/sqlite.lua",
|
||||||
|
-- "nvim-lua/plenary.nvim",
|
||||||
|
-- "MunifTanjim/nui.nvim",
|
||||||
|
-- "nvim-treesitter/nvim-treesitter",
|
||||||
|
-- },
|
||||||
|
-- lazy = false,
|
||||||
|
-- config = true,
|
||||||
|
-- }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return prose_plugs
|
||||||
|
|
Loading…
Reference in a new issue