summaryrefslogtreecommitdiff
path: root/nvim/lua/options.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nvim/lua/options.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/nvim/lua/options.lua b/nvim/lua/options.lua
index 6f575a9..518329a 100644
--- a/nvim/lua/options.lua
+++ b/nvim/lua/options.lua
@@ -28,18 +28,24 @@ local options = {
tabstop = 4,
cursorline = true,
number = true,
- relativenumber = true,
+ -- relativenumber = true,
numberwidth = 4,
signcolumn = "yes",
wrap = true,
scrolloff = 8,
sidescrolloff = 8,
+ syntax = "on",
+ foldmethod = "expr",
+ foldexpr = "nvim_treesitter#foldexpr()",
+ foldnestmax = 4,
+ foldlevel = 99,
+ foldlevelstart = 1,
}
-vim.opt.shortmess:append "c"
+vim.opt.shortmess:append("c")
for k, v in pairs(options) do
vim.opt[k] = v
end
-vim.cmd "set whichwrap+=<,>,[,],h,l"
+vim.cmd("set whichwrap+=<,>,[,],h,l")