dotvim/lua/config/autocmd.lua
2024-01-26 10:00:23 -08:00

18 lines
403 B
Lua

vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
pattern = '*.gohtml',
command = 'set filetype=html'
}
)
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
pattern = {'*.man', '*.kbom'},
command = 'set filetype=xml'
}
)
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
pattern = '*.w',
command = 'set filetype=cpp'
}
)