the treesitter code folding was not working for my needs.

Removed it, restored the old indent+custom foldtext method.
This commit is contained in:
Gabe Venberg 2022-02-18 16:50:42 -06:00
parent 0116f9e845
commit 43b15731f0
3 changed files with 16 additions and 21 deletions

View file

@ -55,17 +55,14 @@ require('cmp-lsp')
opt.hlsearch=true
opt.incsearch=true
--foling stuff
opt.foldmethod='expr'
opt.foldexpr='nvim_treesitter#foldexpr()'
opt.foldlevelstart=5
-- cmd([[source ~/.config/nvim/foldtext.vimrc]])
-- opt.foldmethod='indent'
-- opt.foldtext='minimal_foldtext()'
-- opt.fillchars='stl:=,stlnc: ,vert:|,fold:-'
-- opt.foldcolumn='4'
-- opt.foldenable=true
-- opt.foldminlines=2
-- opt.foldignore=''
cmd([[source ~/.config/nvim/foldtext.vimrc]])
opt.foldmethod='indent'
opt.foldtext='minimal_foldtext()'
opt.fillchars='stl:=,stlnc: ,vert:|,fold:-'
opt.foldcolumn='4'
opt.foldenable=true
opt.foldignore=''
--leader key is set through a variable, for some reason.
vim.g.mapleader = ';'