diff --git a/lua/plugins/text.lua b/lua/plugins/text.lua new file mode 100644 index 0000000..a59b690 --- /dev/null +++ b/lua/plugins/text.lua @@ -0,0 +1,15 @@ +vim.api.nvim_create_autocmd({ "FileType" }, { + pattern = { "text", "markdown" }, + callback = function() + vim.opt.textwidth = 80 + vim.opt.wrapmargin = 0 + vim.opt.formatoptions:append("t") + vim.opt.linebreak = true + vim.opt.tabstop = 2 + vim.opt.softtabstop = 2 + vim.opt.shiftwidth = 2 + vim.opt.expandtab = false + end, +}) + +return {}