Add basic options
This commit is contained in:
parent
6ab96328ec
commit
6c1e628a40
1 changed files with 26 additions and 0 deletions
26
plugin/options.lua
Normal file
26
plugin/options.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
local opt = vim.opt
|
||||
|
||||
-- Command to show inline what are you trying to perform
|
||||
opt.inccommand = "split"
|
||||
|
||||
-- Search settings to toggle "smart case" search only if 1+ uppercase char
|
||||
-- persist in search line
|
||||
opt.smartcase = true
|
||||
opt.ignorecase = true
|
||||
|
||||
-- Enable line numbers and relative setting
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
|
||||
-- Tabulation and indentation settings
|
||||
opt.shiftwidth = 2 -- Set spaces for tabs == 2
|
||||
opt.tabstop = 2 -- Set spaces for indent with == 2
|
||||
opt.expandtab = true -- use number of spaces to insert a <Tab>
|
||||
opt.softtabstop = 2
|
||||
|
||||
-- Disable swap files creation
|
||||
opt.swapfile = false
|
||||
|
||||
-- Add line at 80 symbols
|
||||
opt.colorcolumn = "80"
|
||||
|
Loading…
Reference in a new issue