Add types for sources and dirs

This commit is contained in:
Alex Yatskov 2024-09-30 21:34:37 -07:00
parent f564b88e64
commit 01d83d4a6f

View File

@ -13,6 +13,11 @@ vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
command = 'set filetype=cpp' command = 'set filetype=cpp'
}) })
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, {
pattern = {'sources', 'sources.inc', 'dirs'},
command = 'set filetype=make'
})
vim.api.nvim_create_autocmd({'FocusGained', 'BufEnter', 'CursorHold'}, { vim.api.nvim_create_autocmd({'FocusGained', 'BufEnter', 'CursorHold'}, {
pattern = '*', pattern = '*',
command = 'checktime' command = 'checktime'