summaryrefslogtreecommitdiff
path: root/lua/config/options.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/options.lua')
-rw-r--r--lua/config/options.lua40
1 files changed, 40 insertions, 0 deletions
diff --git a/lua/config/options.lua b/lua/config/options.lua
new file mode 100644
index 0000000..47fb6f2
--- /dev/null
+++ b/lua/config/options.lua
@@ -0,0 +1,40 @@
+local o = vim.o
+
+vim.o.nu = true
+vim.o.relativenumber = true
+-- tab and indent opts
+vim.o.tabstop = 4
+vim.o.softtabstop = 4
+vim.o.shiftwidth = 4
+vim.o.expandtab = true
+-- indents
+vim.o.breakindent = true
+vim.o.autoindent = true
+vim.o.copyindent = true
+-- no line wrapping
+vim.o.wrap = false
+-- minimum num lines to keep around cursor
+vim.o.scrolloff = 8
+vim.o.sidescrolloff = 8
+-- search
+vim.o.ignorecase = true
+vim.o.smartcase = true
+-- save + undo
+vim.o.swapfile = false
+vim.o.backup = false
+vim.o.undofile = true
+vim.o.hlsearch = false
+-- misc
+vim.o.mouse = 'a'
+vim.o.clipboard = 'unnamedplus'
+vim.o.completeopt = 'menuone,noselect,fuzzy'
+vim.o.termguicolors = true
+
+-- leader keys
+vim.g.mapleader = " "
+vim.g.maplocalleader = "\\"
+
+
+
+-- vim.o.updatetime = 250
+-- vim.o.timeoutlen = 300