summaryrefslogtreecommitdiff
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.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua
new file mode 100644
index 0000000..cd293f4
--- /dev/null
+++ b/.config/nvim/lua/options.lua
@@ -0,0 +1,35 @@
+vim.cmd "set undofile"
+-- vim.opt.isfname:append("@-@")
+vim.g.mapleader = ' '
+
+local options = {
+ nu = true,
+ relativenumber = true,
+
+ tabstop = 4,
+ softtabstop = 4,
+ shiftwidth = 4,
+ expandtab = true,
+
+ smartindent = false,
+ autoindent = true,
+
+ wrap = true,
+
+ hlsearch = false,
+ incsearch = true,
+
+ scrolloff = 8,
+ signcolumn = "no",
+ cursorline = true,
+ cursorlineopt = "number",
+
+ ignorecase = true,
+ smartcase = true,
+
+ showmode = false,
+}
+
+for k, v in pairs(options) do
+ vim.opt[k] = v
+end