--- /dev/null
+vim.opt_local.formatoptions:remove("r") -- don't insert comment leader after enter
+vim.opt_local.formatoptions:remove("n") -- don't indent after enumerations
+vim.opt_local.formatoptions:append("w") -- trailing space continues paragraph
+vim.opt_local.formatoptions:append("a") -- auto format paragraphs
+
+vim.opt_local.cpoptions:append("I") -- don't delete indent when moving up/down