first commit

This commit is contained in:
bacalhau 2025-07-02 15:42:50 +01:00
commit a89179ce06
10 changed files with 215 additions and 0 deletions

28
lua/behavior.lua Normal file
View file

@ -0,0 +1,28 @@
-- base
vim.g.mapleader = " "
-- line numbers
vim.opt.nu = true
vim.opt.relativenumber = true
-- spell check
vim.opt.spell = true
vim.opt.spelllang = { 'pt', 'en' }
-- tab
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.smartindent = true
-- search
vim.opt.hlsearch = false
vim.opt.incsearch = true
-- edit history
vim.opt.undofile = true
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.scrolloff = 8
vim.opt.updatetime = 50