From e4c2783cd5b111705f1d38f3149c24dd5a835e8f Mon Sep 17 00:00:00 2001 From: mk1121 Date: Sun, 28 Aug 2022 07:03:30 +0600 Subject: [PATCH] fix fold option --- lua/user/options.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/user/options.lua b/lua/user/options.lua index 799aa9d..05f849c 100644 --- a/lua/user/options.lua +++ b/lua/user/options.lua @@ -41,6 +41,13 @@ for k, v in pairs(options) do vim.opt[k] = v end +--fold + +vim.cmd [[set foldmethod=expr]] +vim.cmd [[set foldexpr=nvim_treesitter#foldexpr()]] +vim.cmd [[set foldlevel=20]] + + vim.cmd "set whichwrap+=<,>,[,],h,l" vim.cmd [[set iskeyword+=-]] vim.cmd [[set formatoptions-=cro]] -- TODO: this doesn't seem to work