From 89caa09b7095629b4f759bb2187fbac9c2558db4 Mon Sep 17 00:00:00 2001 From: yevagorbachev Date: Sun, 26 Mar 2023 11:33:07 -0400 Subject: [PATCH] Changed c folding to use syntax --- configs/.vim/ftplugin/c/folding.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/.vim/ftplugin/c/folding.vim b/configs/.vim/ftplugin/c/folding.vim index 1a0e940..5bfaf9d 100644 --- a/configs/.vim/ftplugin/c/folding.vim +++ b/configs/.vim/ftplugin/c/folding.vim @@ -1,5 +1,5 @@ -setlocal foldmethod=expr -setlocal foldexpr=SectionFold(v:lnum) +setlocal foldmethod=syntax + setlocal foldtext=SectionText() setlocal foldcolumn=4