vim.filetype.add({ extension = { lua = function(_, bufnr) vim.bo[bufnr].shiftwidth = 2 vim.bo[bufnr].tabstop = 2 return "lua" end, typ = function(_, bufnr) vim.bo[bufnr].shiftwidth = 2 vim.bo[bufnr].tabstop = 2 return "typst" end, idr = "idris2", wgsl = "wgsl", }, })