nvim-autopairs
nvim-autopairs copied to clipboard
feat(cpp <> pairs) auto add <> for templates,includes and templated types
this issue #405 inspired me to make this pr
this pr adds cpp_pairs
to the completion pairs
which does
press <
template| -> template<|>
#include| -> #include <|> // extra space for include
std::vector| -> std::vector<|>
cpp_sort_cmp
is there to make sure templated classes are picked over constructors for templated classes
without this we wouldn't detect templated classes