vim.api.nvim_create_autocmd("FileType", { pattern = "text", callback = function() vim.opt_local.textwidth = 80 vim.opt_local.wrapmargin = 0 vim.opt_local.wrap = true vim.opt_local.linebreak = true vim.opt_local.showbreak = "↪ " vim.opt_local.formatoptions:append("t") vim.opt_local.formatoptions:append("r") vim.opt_local.formatoptions:append("o") vim.opt_local.formatoptions:append("n") vim.opt_local.autoindent = true vim.opt_local.smartindent = true vim.opt_local.breakindent = true end, })