diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-05 03:40:16 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-05 03:40:16 +0900 |
| commit | 3fc699eea5ec5d0d2986aa9e5982d7cbde722867 (patch) | |
| tree | d5b54ddd6ba591aff4c4c4837a16cd9ca5b94440 /ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua | |
| parent | bc3c4dc00f4f61419217813a889574bfaafe3722 (diff) | |
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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" }, { |
