dotfiles/.config/nvim/lua/config/autocmds.lua

12 lines
422 B
Lua
Raw Normal View History

-- 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
--- 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,
})