This commit is contained in:
2026-06-28 00:57:08 +02:00
parent cfe6ea12f7
commit d66b0a8fb5
3 changed files with 12 additions and 5 deletions

View File

@@ -1 +1,4 @@
vim.opt_local.textwidth = 80 local o = vim.opt_local
o.textwidth = 80
o.expandtab = false

View File

@@ -0,0 +1,3 @@
local o = vim.opt_local
o.expandtab = false

View File

@@ -5,9 +5,11 @@ local o = vim.opt
g.mapleader = " " -- Uses space as the global leader key. g.mapleader = " " -- Uses space as the global leader key.
g.maplocalleader = " " -- Uses space as the local leader key. g.maplocalleader = " " -- Uses space as the local leader key.
-- Interface -- Layout and display
o.number = true -- Shows absolute line numbers. o.number = true -- Shows absolute line numbers.
o.relativenumber = true -- Shows relative numbers for easier motion. o.relativenumber = true -- Shows relative numbers for easier motion.
o.cursorline = true -- Highlights the line under the cursor.
o.textwidth = 80 -- Wraps inserted text after 80 columns when formatting is active.
o.scrolloff = 8 -- Keeps context lines visible around the cursor. o.scrolloff = 8 -- Keeps context lines visible around the cursor.
o.signcolumn = "yes" -- Always reserves space for signs in the gutter. o.signcolumn = "yes" -- Always reserves space for signs in the gutter.
o.colorcolumn = "+1" -- Highlights the preferred maximum line width. o.colorcolumn = "+1" -- Highlights the preferred maximum line width.
@@ -23,11 +25,11 @@ o.listchars = {
o.termguicolors = true -- Enables full RGB color support. o.termguicolors = true -- Enables full RGB color support.
o.mouse = "" -- Disables mouse support. o.mouse = "" -- Disables mouse support.
-- Editing -- Indentation and editing
o.tabstop = 4 -- Renders tab characters as four columns. o.tabstop = 4 -- Renders tab characters as four columns.
o.softtabstop = 4 -- Makes tab/backspace feel like four spaces. o.softtabstop = 4 -- Makes tab/backspace feel like four spaces.
o.shiftwidth = 4 -- Uses four columns for each indent step. o.shiftwidth = 4 -- Uses four columns for each indent step.
o.expandtab = false -- Keeps literal tab characters instead of spaces. o.expandtab = true -- Inserts spaces when indenting by default.
o.smartindent = true -- Adds indentation automatically on new lines. o.smartindent = true -- Adds indentation automatically on new lines.
o.swapfile = false -- Disables swapfile creation. o.swapfile = false -- Disables swapfile creation.
@@ -38,4 +40,3 @@ o.spelllang = { "en_us" } -- Uses US English for spell checking.
-- Shell -- Shell
o.shell = "bash" -- Runs shell commands through bash. o.shell = "bash" -- Runs shell commands through bash.