sbdchd / neoformat

:sparkles: A (Neo)vim plugin for formatting code.
BSD 2-Clause "Simplified" License
1.97k stars 188 forks source link

Clang-format doesn't use the style config file closest to the file's location #459

Closed hvintus closed 1 year ago

hvintus commented 1 year ago

clang-format receives file name without the path part in the -assume-file parameter and thus isn't able to find the style config closest to the file's location. For a file subproject/main.c it will use ./.clang-format instead of subproject/.clang-format.