nvim: use treesitter folding

This commit is contained in:
Gabriel Fontes
2022-04-19 08:41:38 -03:00
parent fdc691915c
commit d2dfcf89aa
2 changed files with 1 additions and 6 deletions
-2
View File
@@ -16,8 +16,6 @@ in
set autoread
au CursorHold,CursorHoldI * checktime
"Folding
set foldmethod=syntax
"Set fold level to highest in file
"so everything starts out unfolded at just the right level
autocmd BufWinEnter * let &foldlevel = max(map(range(1, line('$')), 'foldlevel(v:val)'))
+1 -4
View File
@@ -1,9 +1,6 @@
{ pkgs, ... }: {
programs.neovim.plugins = with pkgs.vimPlugins; [
{
plugin = rust-vim;
config = "let g:rust_fold = 1";
}
rust-vim
dart-vim-plugin
plantuml-syntax
vim-markdown