2023-11-04 11:30:53 -07:00
|
|
|
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
|
2024-08-04 17:59:34 -07:00
|
|
|
pattern = '*.gohtml',
|
|
|
|
command = 'set filetype=html'
|
|
|
|
})
|
2022-11-12 20:06:05 -08:00
|
|
|
|
2023-11-04 11:30:53 -07:00
|
|
|
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
|
2024-08-04 17:59:34 -07:00
|
|
|
pattern = {'*.man', '*.kbom'},
|
|
|
|
command = 'set filetype=xml'
|
|
|
|
})
|
2022-11-12 20:06:05 -08:00
|
|
|
|
2023-11-04 11:30:53 -07:00
|
|
|
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
|
2024-08-04 17:59:34 -07:00
|
|
|
pattern = '*.w',
|
|
|
|
command = 'set filetype=cpp'
|
|
|
|
})
|
|
|
|
|
2024-09-30 21:34:37 -07:00
|
|
|
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
|
|
|
|
pattern = {'sources', 'sources.inc', 'dirs'},
|
|
|
|
command = 'set filetype=make'
|
|
|
|
})
|
|
|
|
|
2024-08-04 17:59:34 -07:00
|
|
|
vim.api.nvim_create_autocmd({'FocusGained', 'BufEnter', 'CursorHold'}, {
|
|
|
|
pattern = '*',
|
|
|
|
command = 'checktime'
|
|
|
|
})
|
2024-10-02 18:51:45 -07:00
|
|
|
|
2024-10-02 20:33:48 -07:00
|
|
|
vim.api.nvim_create_autocmd({'FileType'}, {
|
2024-10-02 18:51:45 -07:00
|
|
|
pattern = '*',
|
|
|
|
callback = function()
|
2024-10-02 20:33:48 -07:00
|
|
|
vim.opt_local.formatoptions:remove({'c', 'r', 'o'})
|
2024-10-02 18:51:45 -07:00
|
|
|
end
|
|
|
|
})
|