From d66b0a8fb53c293c41b844285d1f3ae107f349ea Mon Sep 17 00:00:00 2001 From: Roman Date: Sun, 28 Jun 2026 00:57:08 +0200 Subject: [PATCH] configs --- nvim/.config/nvim/after/ftplugin/c.lua | 5 ++++- nvim/.config/nvim/after/ftplugin/python.lua | 3 +++ nvim/.config/nvim/lua/romanzy/options.lua | 9 +++++---- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 nvim/.config/nvim/after/ftplugin/python.lua diff --git a/nvim/.config/nvim/after/ftplugin/c.lua b/nvim/.config/nvim/after/ftplugin/c.lua index 97209fb..33ead83 100644 --- a/nvim/.config/nvim/after/ftplugin/c.lua +++ b/nvim/.config/nvim/after/ftplugin/c.lua @@ -1 +1,4 @@ -vim.opt_local.textwidth = 80 +local o = vim.opt_local + +o.textwidth = 80 +o.expandtab = false diff --git a/nvim/.config/nvim/after/ftplugin/python.lua b/nvim/.config/nvim/after/ftplugin/python.lua new file mode 100644 index 0000000..016c058 --- /dev/null +++ b/nvim/.config/nvim/after/ftplugin/python.lua @@ -0,0 +1,3 @@ +local o = vim.opt_local + +o.expandtab = false diff --git a/nvim/.config/nvim/lua/romanzy/options.lua b/nvim/.config/nvim/lua/romanzy/options.lua index db18577..682c1ff 100644 --- a/nvim/.config/nvim/lua/romanzy/options.lua +++ b/nvim/.config/nvim/lua/romanzy/options.lua @@ -5,9 +5,11 @@ local o = vim.opt g.mapleader = " " -- Uses space as the global leader key. g.maplocalleader = " " -- Uses space as the local leader key. --- Interface +-- Layout and display o.number = true -- Shows absolute line numbers. 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.signcolumn = "yes" -- Always reserves space for signs in the gutter. o.colorcolumn = "+1" -- Highlights the preferred maximum line width. @@ -23,11 +25,11 @@ o.listchars = { o.termguicolors = true -- Enables full RGB color support. o.mouse = "" -- Disables mouse support. --- Editing +-- Indentation and editing o.tabstop = 4 -- Renders tab characters as four columns. o.softtabstop = 4 -- Makes tab/backspace feel like four spaces. 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.swapfile = false -- Disables swapfile creation. @@ -38,4 +40,3 @@ o.spelllang = { "en_us" } -- Uses US English for spell checking. -- Shell o.shell = "bash" -- Runs shell commands through bash. -