2023-04-07 10:31:26 +02:00
|
|
|
-- Autocmds are automatically loaded on the VeryLazy event
|
|
|
|
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
|
|
|
-- Add any additional autocmds here
|
2023-09-04 18:15:16 +02:00
|
|
|
|
|
|
|
--- test blinry's wiki setup
|
|
|
|
vim.api.nvim_create_autocmd({ "bufnewfile", "bufread" }, {
|
|
|
|
pattern = os.getenv("HOME") .. "/Documents/wiki/*",
|
|
|
|
callback = function()
|
|
|
|
vim.bo.filetype = "hiswiki"
|
|
|
|
end,
|
|
|
|
})
|