dotvim/lua/config/autocmd.lua

18 lines
403 B
Lua
Raw Normal View History

2023-11-04 18:30:53 +00:00
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
2022-11-13 04:06:05 +00:00
pattern = '*.gohtml',
command = 'set filetype=html'
}
)
2023-11-04 18:30:53 +00:00
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
2024-01-26 18:00:23 +00:00
pattern = {'*.man', '*.kbom'},
2022-11-13 04:06:05 +00:00
command = 'set filetype=xml'
}
)
2023-11-04 18:30:53 +00:00
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
2022-11-13 04:06:05 +00:00
pattern = '*.w',
command = 'set filetype=cpp'
}
)