diff options
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" }, { |
