1 2 3 4 5 6
vim.api.nvim_create_autocmd({'BufRead', 'BufNewFile'}, { pattern = '*.[1-7]', callback = function() vim.bo.filetype = 'nroff' end, })