From 3fc699eea5ec5d0d2986aa9e5982d7cbde722867 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 5 Jun 2025 03:40:16 +0900 Subject: updates --- ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua') diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua index e6eba4c..7ba527f 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua @@ -286,6 +286,14 @@ vim.api.nvim_create_autocmd("BufWritePost", { end, }) +-- Set vimwiki's index filetype to vimwiki instead of markdown +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", +}) + -- Run xrdb whenever Xdefaults or Xresources are updated. local x_config = augroup("x_config") vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { -- cgit v1.2.3