dotfiles-nvim/lua/filetypes.lua

17 lines
303 B
Lua

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",
},
})