summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-06 08:17:31 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-06 08:17:31 +0900
commit1432d08d7107abe873c733c64493d69d90364a1d (patch)
tree8fbe52c93ecfdf9c35e5296a7316f170e73f29bb /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
parent545bd2d72f1e76d8b86611e16b8d2608d0e30f26 (diff)
modified core/autocmds.lua, modified plugins/markdown.lua, modified plugins/sessions.lua, modified plugins/wiki.lua
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua26
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" },