Skip to content

Commit e20568f

Browse files
feat: set tab to be 4 spaces globally
Signed-off-by: ポッチャマ <[email protected]>
1 parent 8d483d6 commit e20568f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

init.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ vim.opt.scrolloff = 10
161161
-- See `:help 'confirm'`
162162
vim.opt.confirm = true
163163

164+
-- Tab/space options
165+
vim.o.tabstop = 4 -- A TAB character looks like 4 spaces
166+
vim.o.expandtab = true -- Pressing the TAB key will insert spaces instead of a TAB character
167+
vim.o.softtabstop = 4 -- Number of spaces inserted instead of a TAB character
168+
vim.o.shiftwidth = 4 -- Number of spaces inserted when indenting
169+
164170
-- [[ Basic Keymaps ]]
165171
-- See `:help vim.keymap.set()`
166172

0 commit comments

Comments
 (0)