From 2939f9f6c6e0acccc991b0deaf60ee9fe647cfeb Mon Sep 17 00:00:00 2001 From: REmerald <55359236+REmerald@users.noreply.github.com> Date: Wed, 20 Jul 2022 15:21:14 +0000 Subject: [PATCH] finally fix formatoptions + minor improvements --- lua/user/options.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lua/user/options.lua b/lua/user/options.lua index 4cabd3f..a128413 100644 --- a/lua/user/options.lua +++ b/lua/user/options.lua @@ -38,13 +38,19 @@ local options = { -- Other scrolloff = 8, -- scroll vertically when the cursor is <8 columns from the end sidescrolloff = 8, -- horizontally - whichwrap = "bs<>[]hl", -- which "horizontal" chars are allowed to travel to prev/next line, see :help 'whichwrap' + whichwrap = "bs<>[]hl", -- which "horizontal" keys are allowed to travel to prev/next line, see :help 'whichwrap' } +-- vim.opt.shortmess = "ilmnrx" -- flags to shorten vim messages, see :help 'shortmess' vim.opt.shortmess:append("c") -- don't give Ctrl-P,Ctrl-N messages vim.opt.runtimepath:remove("/usr/share/vim/vimfiles") -- to separate vim plugins from neovim on Arch -vim.opt.iskeyword:remove("-") -- threat a-word, word- as one w -vim.opt.formatoptions:remove("cro") -- see :help fo-table +vim.opt.iskeyword:remove("-") -- treat a-word, word- as one w + +-- see :help fo-table +-- These 3 lines worked, I assume `-=cro`/`remove("cro") didn't work because they only accept 1 char/flag +vim.opt.formatoptions:remove("c") +vim.opt.formatoptions:remove("r") +vim.opt.formatoptions:remove("o") for k, v in pairs(options) do vim.opt[k] = v