From e76c56156490c3b697fa23f411df4257c6976432 Mon Sep 17 00:00:00 2001 From: Pascal Popp Date: Tue, 30 Jul 2024 16:30:12 +0200 Subject: [PATCH] update: add options for tabs vs spaces two empty spaces instead of tab are being inserted when pressing tab --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index c8dfc4ce..0971965b 100644 --- a/init.lua +++ b/init.lua @@ -84,6 +84,12 @@ I hope you enjoy your Neovim journey, P.S. You can delete this when you're done too. It's your config now! :) --]] +-- Tabs vs spaces +vim.opt.expandtab = true +vim.opt.tabstop = 2 +vim.opt.softtabstop = 2 +vim.opt.shiftwidth = 2 + -- Set as the leader key -- See `:help mapleader` -- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)