Compare commits

...

2 Commits

Author SHA1 Message Date
f8f905243d
nvim: fold code with tree-sitter 2023-01-22 15:40:46 -05:00
e2006c5c8e
update previews 2023-01-21 22:27:42 -05:00
3 changed files with 5 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1023 KiB

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@ -138,3 +138,8 @@ require'nvim-treesitter.configs'.setup {
},
}
EOF
" Code folding
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
autocmd BufEnter * normal zR