jalvesaq / cmp-nvim-r

GNU General Public License v3.0
18 stars 1 forks source link

feat: follow completion through multiline pipes #7

Closed liamvdvyver closed 1 year ago

liamvdvyver commented 1 year ago

This allows completions to follow multi-line pipes as discussed in issue #5 .

I didn't add it as an option here, since a single object is already followed through multiple pipes on a single line, so this is just consistent over line breaks. To make behaviour consistent over single/multiple lines with the option turned off, single line pipelines need to be changed to offer suggestions only when there is a single pipe on the line, or additional pipes are inside of function arguments (and not part of the pipeline), or you are in a function after the first pipe on the line. This seems like more effort than it is worth, but I'm happy to add an option to toggle the changes in this PR.

jalvesaq commented 1 year ago

Thank you! We can create an option for it later if someone requests it.