R-nvim / R.nvim

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

fix: mid-line pipe inserts #133

Closed wurli closed 1 month ago

wurli commented 1 month ago

Previously, if a pipe was inserted mid-line you'd get something like this:

1.
iristransform
   ^- cursor (between 's' and 't')

2. (after <localleader>,)
iris |> transform
       ^- cursor

3. a. (after <CR>)
iris |>transform
       ^- cursor

3. b.
iris |>t
  ransform
 ^- cursos

This PR basically moves the cursor back one column after 3. a.