R-nvim / R.nvim

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

set up assign map to mimic ESS behaviour #53

Closed maitra closed 4 months ago

maitra commented 4 months ago

In ESS, _ converts to <- (the assignment operator) while using _ in quick succession (i.e. __) switches it back to _. This is a throwback to the old days (before R 1.6) when _ was allowed as an assignment operator. Is it possible to get this behaviour with nvim-R?

jalvesaq commented 4 months ago

@maitra, could you try the branch underscore? I believe it does what you want.

jalvesaq commented 4 months ago

I compared the default behavior of Nvim-R in Vim and R.nvim with the option assign_map = "_" in Neovim and they seem to be identical. I will merge the changes, but you can reopen the issue if something is wrong.