dotfiles/private_dot_config/nvim/lua/general/editor.lua
2023-07-27 22:39:59 +02:00

16 lines
354 B
Lua

--[[
Loads editor settings
--]]
vim.opt.textwidth = 72 -- maximum width of text (80 is a standard, but with
-- diff marker and email quoting, 72 is safer)
-- apply it to each filetype
vim.opt.formatoptions:append({ t, 1 })
vim.api.nvim_create_autocmd(
{"Filetype"},
{
pattern = {"*"},
command = ":setlocal formatoptions+=t1"
}
)