From c2a401d57413d06f9d8ec5818be7812b44ca2c2b Mon Sep 17 00:00:00 2001 From: Jose Carvajal Date: Thu, 29 May 2025 22:31:50 -0600 Subject: [PATCH] Update config from local --- lua/after/ftplugin/python.lua | 3 +++ lua/options.lua | 12 +++++------- 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 lua/after/ftplugin/python.lua diff --git a/lua/after/ftplugin/python.lua b/lua/after/ftplugin/python.lua new file mode 100644 index 00000000..e253d415 --- /dev/null +++ b/lua/after/ftplugin/python.lua @@ -0,0 +1,3 @@ +vim.o.tabstop = 4 +vim.o.shiftwidth = 4 +vim.o.softtabstop = -1 diff --git a/lua/options.lua b/lua/options.lua index 1dca713b..7acd569c 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -71,13 +71,11 @@ vim.o.scrolloff = 10 -- See `:help 'confirm'` vim.o.confirm = true --- always use spaces for tabs -vim.o.expandtab = true ---[[ other tab settings to remember -vim.o.tabstop = 8 -- Number of spaces that a in the file counts for. -vim.o.softtabstop = 8 -- Number of spaces that a counts for pressing Tab or Backspace() -vim.o.shiftwidth = 8 -- Number of spaces to use for each step of (auto)indent. +-- Set default indentation options +vim.o.expandtab = true -- use spaces for tabs +vim.o.tabstop = 2 -- Number of spaces that a in the file counts for. +vim.o.shiftwidth = 2 -- Number of spaces to use for each step of (auto)indent. +vim.o.softtabstop = -1 -- Number of spaces that a counts for pressing Tab or Backspace(). if negative use shiftwidth value vim.o.autoindent = true -- Copy indent from current line when starting a new line -]] -- vim: ts=2 sts=2 sw=2 et