diff options
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua | 26 |
1 files changed, 17 insertions, 9 deletions
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 { { "<leader>w<leader>", 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 = { { "<leader>ww", ":VimwikiIndex<CR>", desc = "Vimwiki index" }, |
