diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2023-08-21 14:35:06 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2023-08-21 14:35:06 -0600 |
commit | 0d785cd9f3a7903c84846cee64e3c46ebb56ff64 (patch) | |
tree | 094e223f670fe9458783e3a77b0e6fcb70e70a94 /lua/config | |
parent | aa1efd58367066722daffdcbb198bfd8758f55b9 (diff) |
add folding, change colorscheme
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', { |