This commit is contained in:
pika 2025-06-08 12:08:44 +02:00
parent 7bd56631c1
commit ec159b66e8

View file

@ -8,6 +8,14 @@ o.number = true
-- Minimal number of screen lines to keep above and below the cursor. -- Minimal number of screen lines to keep above and below the cursor.
o.scrolloff = 8 o.scrolloff = 8
o.formatoptions:append("c") -- Auto-wrap comments
o.formatoptions:append("r") -- Auto-insert comment leader on Enter
o.formatoptions:append("o") -- Auto-insert comment leader with 'o'/'O'
o.formatoptions:append("q") -- Allow formatting of comments with 'gq'
o.formatoptions:remove("t") -- Don't auto-wrap text (only comments)
o.textwidth = 80
-- tabs & indentation -- tabs & indentation
o.tabstop = 2 -- 2 spaces for tabs (prettier default) o.tabstop = 2 -- 2 spaces for tabs (prettier default)
o.shiftwidth = 2 -- 2 spaces for indent width o.shiftwidth = 2 -- 2 spaces for indent width