feat: Set correct filetype and shiftwidth for typst files
This commit is contained in:
parent
1f8fa75f33
commit
2ae15f73e9
2 changed files with 10 additions and 0 deletions
9
lua/filetypes.lua
Normal file
9
lua/filetypes.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
vim.filetype.add({
|
||||
extension = {
|
||||
typ = function(_, bufnr)
|
||||
vim.bo[bufnr].shiftwidth = 2
|
||||
vim.bo[bufnr].tabstop = 2
|
||||
return "typst"
|
||||
end,
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue