Won't use symlink'd .clang-format
I have a symlink'd .clang-format file on the volume I'm editing on, and :echo g:ClangFormatConfigFileExists() returns 0 and :Autoformat is using the default.
Is there a way for vim-autoformat to recognize symlinks?
Thanks
The function that checks for that file can be found in defaults.vim:
function! g:ClangFormatConfigFileExists()
return len(findfile(".clang-format", expand("%:p:h").";")) || len(findfile("_clang-format", expand("%:p:h").";"))
endfunction
You could fiddle around with this a bit, and provide a pull request if you got it working.
FWIW, I think this is resolved with Vim 8.0 (potentially even less recently, but that's what I'm running). I use symlinks for all my config files, and findfile doesn't have a problem picking them up.
@mjedmonds can you confirm?
@Chiel92 I still use this plugin but without symlink'd files. I also have migrated to Neovim.