From 3c30d1c881ed5be03b104e93f514c49fdbc88af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Sch=C3=B6ll?= Date: Sun, 10 Mar 2024 02:16:28 +0100 Subject: [PATCH] feat: use spaces for intentation --- init.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 679f4979..1ed45a74 100644 --- a/init.lua +++ b/init.lua @@ -137,7 +137,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 = '␣', space = '·' } -- Preview substitutions live, as you type! vim.opt.inccommand = 'split' @@ -148,6 +148,18 @@ vim.opt.cursorline = true -- Minimal number of screen lines to keep above and below the cursor. vim.opt.scrolloff = 10 +-- Number of spaces that a in the file counts for. +vim.opt.tabstop = 4 + +-- Amount of whitespace used for one level of indentation. +vim.opt.shiftwidth = 4 + +-- Use the appropriate number of spaces to insert a . +vim.opt.expandtab = true + +-- Highlight column +vim.opt.colorcolumn = '80' + -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()`