first commit
This commit is contained in:
commit
a89179ce06
10 changed files with 215 additions and 0 deletions
28
lua/behavior.lua
Normal file
28
lua/behavior.lua
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue