From 36a5f403600dd10386320e16517371a9d6f228a4 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Tue, 27 Aug 2024 02:23:32 +0200 Subject: [PATCH] Tab behaviour --- lua/options.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/options.lua b/lua/options.lua index 52ab28f..ac0b9ed 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -51,7 +51,7 @@ vim.opt.splitbelow = true -- See `:help 'list'` -- and `:help 'listchars'` vim.opt.list = true -vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } +vim.opt.listchars = { tab = '│ ', trail = '·', nbsp = '␣' } -- Preview substitutions live, as you type! vim.opt.inccommand = 'split' @@ -63,10 +63,10 @@ vim.opt.cursorline = true vim.opt.scrolloff = 10 -- Make tabs behave -vim.opt.smarttab = true -vim.opt.expandtab = true -vim.opt.tabstop = 2 -vim.opt.shiftwidth = 2 -vim.opt.softtabstop = 2 +vim.opt.smarttab = true -- Smart tabbing behavior, context-dependent +vim.opt.expandtab = true -- Convert tabs to spaces +vim.opt.tabstop = 4 -- A Tab character is visually equal to 4 spaces. +vim.opt.shiftwidth = 4 -- Auto-indent shifts are 4 spaces wide. +vim.opt.softtabstop = 4 -- When pressing Tab, insert 4 spaces if expandtab is enabled. -- vim: ts=2 sts=2 sw=2 et