configure tabs, indent

This commit is contained in:
douglascdev 2026-05-01 10:32:10 -03:00
parent d93cef7701
commit d6da65594d
1 changed files with 7 additions and 2 deletions

View File

@ -102,7 +102,7 @@ vim.g.have_nerd_font = true
vim.o.number = true vim.o.number = true
-- You can also add relative line numbers, to help with jumping. -- You can also add relative line numbers, to help with jumping.
-- Experiment for yourself to see if you like it! -- Experiment for yourself to see if you like it!
-- vim.o.relativenumber = true vim.o.relativenumber = true
-- Enable mouse mode, can be useful for resizing splits for example! -- Enable mouse mode, can be useful for resizing splits for example!
vim.o.mouse = 'a' vim.o.mouse = 'a'
@ -120,6 +120,11 @@ end)
-- Enable break indent -- Enable break indent
vim.o.breakindent = true vim.o.breakindent = true
vim.o.expandtab = true -- Convert tabs to spaces
vim.o.shiftwidth = 4 -- Number of spaces to use for each step of (auto)indent
vim.o.softtabstop = 4 -- Number of spaces a <Tab> counts for while performing editing operations
vim.o.autoindent = true -- Indent a new line the same amount as the line just typed
vim.o.smartindent = true -- Smart indentation with braces
-- Save undo history -- Save undo history
vim.o.undofile = true vim.o.undofile = true
@ -151,6 +156,7 @@ vim.o.splitbelow = true
-- and `:help lua-options-guide` -- and `:help lua-options-guide`
vim.o.list = true vim.o.list = true
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' } vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' }
vim.opt.tabstop = 4
-- Preview substitutions live, as you type! -- Preview substitutions live, as you type!
vim.o.inccommand = 'split' vim.o.inccommand = 'split'
@ -233,7 +239,6 @@ end
---@type vim.Option ---@type vim.Option
local rtp = vim.opt.rtp local rtp = vim.opt.rtp
rtp:prepend(lazypath) rtp:prepend(lazypath)
-- [[ Configure and install plugins ]] -- [[ Configure and install plugins ]]
-- --
-- To check the current status of your plugins, run -- To check the current status of your plugins, run