2024-06-08 16:01:26 +02:00
|
|
|
vim.filetype.add({
|
2024-09-12 21:53:56 +02:00
|
|
|
extension = {
|
2024-09-12 22:06:44 +02:00
|
|
|
lua = function(_, bufnr)
|
|
|
|
vim.bo[bufnr].shiftwidth = 2
|
|
|
|
vim.bo[bufnr].tabstop = 2
|
2024-09-13 09:49:24 +02:00
|
|
|
return "lua"
|
2024-09-12 22:06:44 +02:00
|
|
|
end,
|
2024-09-12 21:53:56 +02:00
|
|
|
typ = function(_, bufnr)
|
|
|
|
vim.bo[bufnr].shiftwidth = 2
|
|
|
|
vim.bo[bufnr].tabstop = 2
|
|
|
|
return "typst"
|
|
|
|
end,
|
2024-09-12 22:12:32 +02:00
|
|
|
idr = "idris2",
|
2024-09-13 19:21:13 +02:00
|
|
|
wgsl = "wgsl",
|
2024-09-12 21:53:56 +02:00
|
|
|
},
|
2024-06-08 16:01:26 +02:00
|
|
|
})
|