R-nvim / R.nvim

Neovim plugin to edit R files
GNU General Public License v3.0
155 stars 16 forks source link

Better handling of the chain break function #35

Closed PMassicotte closed 7 months ago

PMassicotte commented 7 months ago

This is taking care of edge cases where the code in a pipe chain could cover over multiple likes.

For example, this was not working (fixed now).

mtcars |>
  mutate(
    y =1
)
jalvesaq commented 7 months ago

The function trim_lines is global. It should be local.

jalvesaq commented 7 months ago

Is it ready to merge?

PMassicotte commented 7 months ago

Yup