As expected, for a big project this plugin is very resource heavy/slow - however, at times this can be caused by git ls-files including many files which you don't really want to include in the project, and restricting the project files to those indexed by the LSP makes it fast enough.
Is there a neat way to only include only those files indexed by the LSP? I'm using clangd, so one way is to manually parse compile_commands.json and then pass the resultant files to the workspace_files function, but I wonder if there is an easier/more generic way to do the same?
As expected, for a big project this plugin is very resource heavy/slow - however, at times this can be caused by
git ls-filesincluding many files which you don't really want to include in the project, and restricting the project files to those indexed by the LSP makes it fast enough.Is there a neat way to only include only those files indexed by the LSP? I'm using
clangd, so one way is to manually parsecompile_commands.jsonand then pass the resultant files to theworkspace_filesfunction, but I wonder if there is an easier/more generic way to do the same?