summaryrefslogtreecommitdiff
path: root/lua/config/opt.lua
diff options
context:
space:
mode:
authormhsn <mail@mhsn.net>2024-11-23 17:40:44 +0000
committermhsn <mail@mhsn.net>2024-11-23 17:40:44 +0000
commitc0ee49298161bccb75b9e23ed64fe80aacec2fd4 (patch)
tree7effe9b25db4f355f54828980a60b5f99bd260b8 /lua/config/opt.lua
downloadnvim-c0ee49298161bccb75b9e23ed64fe80aacec2fd4.tar.gz
nvim-c0ee49298161bccb75b9e23ed64fe80aacec2fd4.zip
Initial commit
Diffstat (limited to 'lua/config/opt.lua')
-rw-r--r--lua/config/opt.lua26
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"