dotvim/lua/config/autocmd.lua
2023-11-04 11:30:53 -07:00

18 lines
391 B
Lua

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