Add command mappings

This commit is contained in:
Alex Yatskov 2022-11-12 20:06:05 -08:00
parent da738d3443
commit 672c44d96a

View File

@ -8,3 +8,24 @@ vim.api.nvim_create_autocmd(
once = true, once = true,
} }
) )
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'
}
)