From 0d785cd9f3a7903c84846cee64e3c46ebb56ff64 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Mon, 21 Aug 2023 14:35:06 -0600 Subject: add folding, change colorscheme --- lua/config/set.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lua/config') 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', { -- cgit v1.2.3-70-g09d2