vim.api.nvim_create_autocmd("FileType", { pattern = "gdscript", callback = function() vim.bo.expandtab = true -- convert to spaces vim.bo.shiftwidth = 4 -- number of spaces for indent vim.bo.softtabstop = 4 -- spaces when pressing vim.bo.softtabstop = 4 vim.bo.tabstop = 4 -- Show tabs as 4 spaces vim.bo.autoindent = true -- Enable autoindent vim.bo.smartindent = true end, })