summaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-08-21 14:35:06 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-08-21 14:35:06 -0600
commit0d785cd9f3a7903c84846cee64e3c46ebb56ff64 (patch)
tree094e223f670fe9458783e3a77b0e6fcb70e70a94 /lua/config
parentaa1efd58367066722daffdcbb198bfd8758f55b9 (diff)
add folding, change colorscheme
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/set.lua6
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', {