aboutsummaryrefslogtreecommitdiff
path: root/lua/user/options.lua
blob: 2b2b4f79d0431dd12331699028958cf119a205f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
local options = {
  completeopt = { "menuone", "noselect" },
  tabstop = 4,
  shiftwidth = 2,
  scrolloff = 5,
  number = 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 = "",
}


for k, v in pairs(options) do
  vim.opt[k] = v
end

for k, v in pairs(gopts) do
  vim.g[k] = v
end

vim.cmd [[set matchpairs+=<:>]]