Closed vigoux closed 4 years ago
This PR adds support for regex based scoped completion, as requested in #174.
Another improvement might be to slightly change the way the chains dict is used, to search in this order :
This would allow this kind of configuration :
let g:mucomplete#chains = { \ 'default': { \ 'default' : ['tags', 'nsnp'], \ '.*String.*' : [], \ '.*Comment.*' : ['spel'] \ }, \ 'rust' :['omni', 'nsnp'], \ 'vim' : ['omni', 'nsnp'] \ }
Which would have the same effect as this :
let g:mucomplete#chains = { \ 'default': ['tags', 'nsnp'], \ 'rust' : { \ "default" : ['omni', 'nsnp'], \ "rustString.*" : [], \ "rustComment.*" : ['spel'], \ }, \ 'c' : { \ "cComment.*" : [], \ "cString.*" : [] \ }, \ 'vim' : { \ 'default' : ['omni', 'nsnp'], \ 'vimComment.*' : [], \ 'vimString.*' : ['spel'] \ }, \ }
Sorry the long delay. Thanks for your contribution!
This PR adds support for regex based scoped completion, as requested in #174.
Another improvement might be to slightly change the way the chains dict is used, to search in this order :
This would allow this kind of configuration :
Which would have the same effect as this :