23 lines
448 B
Lua
23 lines
448 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",
|
|
nix = function(_, bufnr)
|
|
vim.bo[bufnr].shiftwidth = 2
|
|
vim.bo[bufnr].tabstop = 2
|
|
vim.bo[bufnr].expandtab = true
|
|
return "nix"
|
|
end,
|
|
},
|
|
})
|