diff options
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. |
