summaryrefslogtreecommitdiff
path: root/nvim/lua/options.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/options.lua')
-rw-r--r--nvim/lua/options.lua47
1 files changed, 28 insertions, 19 deletions
diff --git a/nvim/lua/options.lua b/nvim/lua/options.lua
index 2a81dc2..5974579 100644
--- a/nvim/lua/options.lua
+++ b/nvim/lua/options.lua
@@ -1,27 +1,36 @@
-vim.opt.nu = true
-vim.opt.relativenumber = true
+vim.cmd "set undofile"
+-- vim.opt.isfname:append("@-@")
+vim.g.mapleader = ' '
-vim.opt.tabstop = 4
-vim.opt.softtabstop = 4
-vim.opt.shiftwidth = 4
-vim.opt.expandtab = true
+local options = {
+ nu = true,
+ relativenumber = true,
-vim.opt.smartindent = false
-vim.opt.autoindent = true
+ tabstop = 4,
+ softtabstop = 4,
+ shiftwidth = 4,
+ expandtab = true,
-vim.opt.wrap = false
+ smartindent = false,
+ autoindent = true,
-vim.opt.hlsearch = false
-vim.opt.incsearch = true
+ wrap = false,
-vim.opt.scrolloff = 8
-vim.opt.signcolumn = "no"
-vim.opt.cursorline = true
-vim.opt.cursorlineopt = "number"
-vim.opt.isfname:append("@-@")
+ hlsearch = false,
+ incsearch = true,
-vim.cmd "set undofile"
+ scrolloff = 8,
+ signcolumn = "no",
+ cursorline = true,
+ cursorlineopt = "number",
-vim.g.mapleader = ' '
+ ignorecase = true,
+ smartcase = true,
+
+ guifont = "FiraCode:h10",
+ showmode = false,
+}
-vim.opt.guifont = "FiraCode:h10"
+for k, v in pairs(options) do
+ vim.opt[k] = v
+end