From d3e6a78d54159009ccaf713856bf5434781c7638 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Tue, 23 Jan 2024 20:02:59 +0100 Subject: [PATCH] set fixed tabstop --- init.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 2328ac1..caee4f4 100644 --- a/init.lua +++ b/init.lua @@ -72,7 +72,7 @@ require('lazy').setup({ 'tpope/vim-rhubarb', -- Detect tabstop and shiftwidth automatically - 'tpope/vim-sleuth', + -- 'tpope/vim-sleuth', -- NOTE: This is where your plugins related to LSP can be installed. -- The configuration is done below. Search for lspconfig to find it below. @@ -269,6 +269,15 @@ require 'colorizer'.setup { -- vim.cmd[[colorscheme tokyonight]] +-- tabstop etc +vim.opt.tabstop = 4 +vim.opt.shiftwidth = 4 +vim.opt.softtabstop = 4 +vim.opt.expandtab = false +vim.opt.smartindent = true +vim.opt.smarttab = true +vim.opt.autoindent = true +vim.opt.smartcase = true -- Set highlight on search vim.o.hlsearch = false