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