jalvesaq / Nvim-R

Vim plugin to work with R
GNU General Public License v2.0
968 stars 126 forks source link

Indentation when using ggplot #744

Closed lokesh-krishna closed 1 year ago

lokesh-krishna commented 1 year ago

I'm not sure if I'm missing something in my setup but the indentation that I get when using the pipe operator and moving to a new line is absent when using +. Is there a way I can get indentation while using + as well? I did go over the documentation but didn't find anything that seemed like it could help here.

jalvesaq commented 1 year ago

Thanks for reporting the issue! I'll accept a pull request to R-Vim-runtime that fixes the issue if it doesn't introduce new bugs. Please, see: https://github.com/jalvesaq/R-Vim-runtime/blob/master/tests/indent_test.R