diff options
Diffstat (limited to 'lua/config/opt.lua')
-rw-r--r-- | lua/config/opt.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lua/config/opt.lua b/lua/config/opt.lua new file mode 100644 index 0000000..60b1d5b --- /dev/null +++ b/lua/config/opt.lua @@ -0,0 +1,26 @@ +-- Relative line numbers +vim.opt.number = true +vim.opt.relativenumber = true + +-- 4 space tabs +vim.opt.tabstop = 4 +vim.opt.softtabstop = 0 +vim.opt.shiftwidth = 4 +vim.opt.smarttab = true + +-- Smart indenting +vim.opt.autoindent = true +vim.opt.smartindent = true + +-- No line wrap +vim.opt.wrap = false + +-- Search highlighting +vim.opt.hlsearch = false +vim.opt.incsearch = true + +-- Keep 9 lines on top/bottom +vim.opt.scrolloff = 9 + +-- 80 char col +vim.opt.colorcolumn = "80" |