nvim-autopairs icon indicating copy to clipboard operation
nvim-autopairs copied to clipboard

feat(cpp <> pairs) auto add <> for templates,includes and templated types

Open Sam-programs opened this issue 9 months ago • 9 comments

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

Sam-programs avatar Oct 14 '23 10:10 Sam-programs