From c0ee49298161bccb75b9e23ed64fe80aacec2fd4 Mon Sep 17 00:00:00 2001 From: mhsn Date: Sat, 23 Nov 2024 17:40:44 +0000 Subject: Initial commit --- lua/config/opt.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lua/config/opt.lua (limited to 'lua/config/opt.lua') 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" -- cgit v1.2.3