From 1432d08d7107abe873c733c64493d69d90364a1d Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Fri, 6 Jun 2025 08:17:31 +0900 Subject: modified core/autocmds.lua, modified plugins/markdown.lua, modified plugins/sessions.lua, modified plugins/wiki.lua --- .../TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua | 26 ++++++++++++++-------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua') diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua index f244171..83213ba 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua @@ -9,23 +9,31 @@ return { { "w", group = "Diary" }, }) - -- Ensure files are read with the desired filetype - vim.g.vimwiki_ext2syntax = { - [".Rmd"] = "markdown", - [".rmd"] = "markdown", - [".md"] = "markdown", - [".markdown"] = "markdown", - [".mdown"] = "markdown", - } - -- Set up Vimwiki list vim.g.vimwiki_list = { { path = vim.fn.expand("~/.local/share/vimwiki"), + template_path = vim.fn.expand("~/.local/share/vimwiki/templates"), + auto_toc = 1, syntax = "markdown", + nested_syntaxes = { + python = "python", + ["c++"] = "cpp", + }, ext = ".md", }, } + + vim.g.vimwiki_global_ext = 1 + + -- Ensure files are read with the desired filetype + vim.g.vimwiki_ext2syntax = { + [".Rmd"] = "markdown", + [".rmd"] = "markdown", + [".md"] = "markdown", + [".markdown"] = "markdown", + [".mdown"] = "markdown", + } end, keys = { { "ww", ":VimwikiIndex", desc = "Vimwiki index" }, -- cgit v1.2.3