16 lines
517 B
Lua
16 lines
517 B
Lua
vim.opt.spell = true
|
|
vim.opt.textwidth = 72
|
|
|
|
-- Auto-wrap text using textwidth
|
|
vim.opt.formatoptions:append('t')
|
|
-- When formatting text, recognize numbered lists
|
|
vim.opt.formatoptions:append('n')
|
|
-- Allow formatting of comments with 'gq'
|
|
vim.opt.formatoptions:append('q')
|
|
-- Automatically insert the current comment leader after hitting 'o' or 'O' in
|
|
-- Normal mode
|
|
vim.opt.formatoptions:append('o')
|
|
|
|
-- A pattern that is used to recognize a list header
|
|
vim.opt.formatlistpat = "^\\s*\\d\\+\\.\\s\\+\\|^[-*+]\\s\\+"
|