vim.api.nvim_create_autocmd("FileType", { -- This autocommand will only trigger if the buffer name matches the following patterns pattern = "rust", -- The autocommand will trigger the following lua function callback = function() vim.opt_local.colorcolumn = "100" vim.opt_local.expandtab = false vim.opt_local.tabstop = 2 vim.opt_local.softtabstop = 2 vim.opt_local.shiftwidth = 2 end }) vim.api.nvim_create_autocmd("FileType", { -- This autocommand will only trigger if the buffer name matches the following patterns pattern = "html", -- The autocommand will trigger the following lua function callback = function() vim.opt_local.colorcolumn = "100" end }) vim.api.nvim_create_autocmd("FileType", { -- This autocommand will only trigger if the buffer name matches the following patterns pattern = "go", -- The autocommand will trigger the following lua function callback = function() vim.opt_local.colorcolumn = "100" end }) vim.api.nvim_create_autocmd("FileType", { -- This autocommand will only trigger if the buffer name matches the following patterns pattern = "python", -- The autocommand will trigger the following lua function callback = function() vim.opt_local.expandtab = true vim.opt_local.tabstop = 4 vim.opt_local.softtabstop = 4 vim.opt_local.shiftwidth = 4 end })