From f00b283bcb115d4f6ac500290618b54df5ec4cfb Mon Sep 17 00:00:00 2001 From: "Radu C. Martin" Date: Sat, 19 Apr 2025 22:20:15 +0200 Subject: [PATCH] feat: add default tab settings --- lua/config/options.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lua/config/options.lua b/lua/config/options.lua index 3ba8461..6c61310 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -62,6 +62,18 @@ vim.opt.splitbelow = true vim.opt.list = true vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } +---- +-- Default tab settings +---- +-- A TAB character looks like 4 spaces +vim.o.tabstop = 4 +-- Pressing the TAB key will insert spaces instead of a TAB character +vim.o.expandtab = true +-- Number of spaces inserted instead of a TAB character +vim.o.softtabstop = 4 +-- Number of spaces inserted when indenting +vim.o.shiftwidth = 4 + -- Preview substitutions live, as you type! vim.opt.inccommand = 'split'