From 66f713050c69bf88706d8d17ed2e32c73b12ee57 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 21 Oct 2023 02:32:31 +0200 Subject: Improved code folding, because tree-sitter broke it --- after/syntax/c.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'after/syntax') diff --git a/after/syntax/c.vim b/after/syntax/c.vim index cbdd42b..4c3b3f0 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -34,6 +34,10 @@ set formatoptions+=1 " Don't break a line after a one-letter word. " open a corresponding header file nnorem gh :execute 'edit '.findfile(substitute(expand('%:t'),'\.[ch]$','.h','')) +if filereadable("/usr/bin/vendor_perl/ack") + autocmd FileType c,cpp set grepprg=/usr/bin/vendor_perl/ack\ --type=cc\ --nogroup\ --column\ $* + autocmd FileType c,cpp set grepformat=%f:%l:%c:%m +endif " multiple single line comments in a row " broken! " syn region myCComment start="/\*" end="\*/" fold keepend transparent -- cgit v1.2.3