aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/options.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/options.lua')
-rw-r--r--.config/nvim/lua/options.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua
new file mode 100644
index 0000000..94ded94
--- /dev/null
+++ b/.config/nvim/lua/options.lua
@@ -0,0 +1,23 @@
+local o = vim.o
+local opt = vim.opt
+local wo = vim.wo
+local bo = vim.bo
+
+-- Global options --
+o.smarttab = true
+o.clipboard = "unnamedplus"
+o.termguicolors = 24
+o.list = true
+opt.listchars = { space = "⋅", tab = " " }
+o.autochdir = true
+
+-- Window options --
+wo.number = true
+wo.relativenumber = true
+
+-- Buffer options --
+bo.expandtab = true
+bo.tabstop = 4
+bo.smartindent = true
+--bo.softtabstop = 0
+bo.shiftwidth = 2