vim; better auto-complete options

This commit is contained in:
Fernando Schauenburg 2022-10-14 10:20:11 +02:00
parent 77b7b4f3b7
commit 045b0cfd91

View file

@ -40,6 +40,12 @@ o.joinspaces = false -- use one space after a period whe joining lines
o.showmatch = true -- briefly jump to matching bracket if insert one
o.virtualedit = 'block' -- position the cursor anywhere in Visual Block mode
o.formatlistpat = [[^\s*\(\d\+[\]:.)}\t ]\|[-+*]\|[\[(][ x][\])]\)\s*]]
o.completeopt = {
'menu', -- show completions in a popup menu
'preview', -- show extra information about the selected match
'noinsert', -- don't insert text until I select a match
'noselect', -- don't pre-select the first match in the menu
}
local fmt = o.formatoptions
fmt:remove 't' -- Don't auto-wrap on 'textwidth'...