sensible default path variable

only include the header folders if c files are opened
This commit is contained in:
2025-10-04 20:19:23 +02:00
parent 3510afefa7
commit 0212af962e
+3
View File
@@ -65,8 +65,11 @@ set wildignore=*.o,*.obj,.git/**,tags,*.pyc
" for c tests
set errorformat^=[----]\ %f:%l:\ %m
set path=**
" language specific makeprgs
autocmd BufNewFile,BufRead *.h set filetype=c
autocmd FileType c setlocal path+=/usr/local/include,/usr/include
autocmd FileType python setlocal makeprg=basedpyright
autocmd FileType go setlocal makeprg=go noexpandtab
autocmd FileType csharp setlocal makeprg=dotnet