MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.72k stars 254 forks source link

[Q] Remove return type from label or separate it ? #919

Open LamprosPitsillos opened 1 year ago

LamprosPitsillos commented 1 year ago

Is it possible to disable return type from the label ?

[cmp] [DEBUG 00:40:43] /home/inferno/.config/nvim/lua/Completion.lua:28: {                                                                                                                     
[cmp]   detail = "std::map",                                                                                                                                                                   
[cmp]   documentation = "Finds a subsequence matching given key.",                                                                                                                             
[cmp]   filterText = "equal_range",                                                                                                                                                            
[cmp]   insertTextFormat = 2,                                                                                                                                                                  
[cmp]   kind = 2,                                                                                                                                                                              
[cmp]   label = "equal_range(const key_type &x) -> std::pair<iterator, iterator>",   <-----here                                                                                                          
[cmp]   sortText = "   %",                                                                                                                                                                     
[cmp]   textEdit = {                                                                                                                                                                           
[cmp]     newText = "equal_range(${1:const key_type &x})$0",                                                                                                                                   
[cmp]     range = {                                                                                                                                                                            
[cmp]       ["end"] = {                                                                                                                                                                        
[cmp]         character = 13,                                                                                                                                                                  
[cmp]         line = 147                                                                                                                                                                       
[cmp]       },                                                                                                                                                                                 
[cmp]       start = {                                                                                                                                                                          
[cmp]         character = 13,                                                                                                                                                                  
[cmp]         line = 147                                                                                                                                                                       
[cmp]       }                                                                                                                                                                                  
[cmp]     }                                                                                                                                                                                    
[cmp]   }                                                                                                                                                                                      
[cmp] }  

cm_W