diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-06 08:17:31 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-06 08:17:31 +0900 |
| commit | 1432d08d7107abe873c733c64493d69d90364a1d (patch) | |
| tree | 8fbe52c93ecfdf9c35e5296a7316f170e73f29bb /ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua | |
| parent | 545bd2d72f1e76d8b86611e16b8d2608d0e30f26 (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.lua | 6 |
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. |
