summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.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/core/autocmds.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/core/autocmds.lua')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua
index 7ba527f..861128c 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua
@@ -290,8 +290,10 @@ vim.api.nvim_create_autocmd("BufWritePost", {
local vimwiki_config = augroup("vimwiki_config")
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
group = vimwiki_config,
- pattern = vim.fn.expand("~/.local/share/vimwiki/index.md"),
- command = "setfiletype vimwiki",
+ pattern = vim.fn.expand("~/.local/share/vimwiki") .. "/**/*.md",
+ callback = function(args)
+ vim.bo[args.buf].filetype = "vimwiki"
+ end,
})
-- Run xrdb whenever Xdefaults or Xresources are updated.