I am a YCM user on Vim, and YCM uses clangd for autocompletion. Is there a way to control the ordering of the completions of #include
directives? For instance, if I write #include <boost/range/itm
, the list is the following
istream_range.hpp> f
algorithm/ f
algorithm.hpp> f
algorithm_ext/ f
algorithm_ext.hpp> f
whereas I’d like it like this
algorithm/ f
algorithm_ext/ f
istream_range.hpp> f
algorithm.hpp> f
algorithm_ext.hpp> f
with all directories preceding all files. I’ve asked in the forum, and I was told there isn’t an option to govern this in clangd.
So the question becomes, can this be implemented?