aboutsummaryrefslogtreecommitdiff
path: root/lua/user/options.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/user/options.lua')
-rw-r--r--lua/user/options.lua22
1 files changed, 20 insertions, 2 deletions
diff --git a/lua/user/options.lua b/lua/user/options.lua
index 293aa31..2b2b4f7 100644
--- a/lua/user/options.lua
+++ b/lua/user/options.lua
@@ -4,11 +4,25 @@ local options = {
shiftwidth = 2,
scrolloff = 5,
number = true,
- relativenumber = true,
+ relativenumber = true,
wrap = false,
cursorline = true,
numberwidth = 4,
undofile = true,
+ colorcolumn = { 80 },
+ encoding = "UTF-8",
+ signcolumn = "yes",
+ updatetime = 300,
+ splitright = true,
+ splitbelow = true,
+ smartcase = true,
+ mouse = "a",
+ fileencoding = "utf-8",
+}
+
+local gopts = {
+ NERDTreeDirArrowCollapsible = "",
+ NERDTreeDirArrowExpandable = "",
}
@@ -16,4 +30,8 @@ for k, v in pairs(options) do
vim.opt[k] = v
end
-vim.cmd [[set matchpairs+=<:>]]
+for k, v in pairs(gopts) do
+ vim.g[k] = v
+end
+
+vim.cmd [[set matchpairs+=<:>]]