diff --git a/init.lua b/init.lua index 2c39b6f..67764f9 100644 --- a/init.lua +++ b/init.lua @@ -20,5 +20,6 @@ require("lazy").setup({ { import = "plugins" } }) require("sets") require("remaps") +require("filetypes") vim.notify("starting nvim 🏕️") diff --git a/lua/filetypes.lua b/lua/filetypes.lua new file mode 100644 index 0000000..e944c7b --- /dev/null +++ b/lua/filetypes.lua @@ -0,0 +1,9 @@ +vim.filetype.add({ + extension = { + typ = function(_, bufnr) + vim.bo[bufnr].shiftwidth = 2 + vim.bo[bufnr].tabstop = 2 + return "typst" + end, + }, +})