diff options
Diffstat (limited to 'lua/config')
-rw-r--r-- | lua/config/set.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/config/set.lua b/lua/config/set.lua index 866eba4..1f4d774 100644 --- a/lua/config/set.lua +++ b/lua/config/set.lua @@ -32,6 +32,12 @@ vim.o.completeopt = 'menuone,noselect' vim.o.termguicolors = true +-- Code folding, depends on treesitter +vim.foldmethod='expr' +vim.opt.foldexpr='nvim_treesitter#foldexpr()' +-- Disable folding at startup. +vim.nofoldenable=true + -- Highlight on yank local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) vim.api.nvim_create_autocmd('TextYankPost', { |