You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using R.Nvim for most of my R work. I think it is doing really well and I am grateful for it. I have one question about the R console however.
I have the R console set to appear at the bottom of my screen. Whenever I type in something, it scrolls so the next input line is at the top. This masks the output that was generated. Is there a way to keep it so the new input line is at the end?
I tried the auto_scroll to false but that meant my input line would disappear. Any help would be appreciated.
Here's my config for the plugin:
{
"R-nvim/R.nvim",
lazy=false,
config=function()
vim.api.nvim_buf_set_keymap(0, "n", "<Enter>", "<Plug>RDSendLine", {})
vim.api.nvim_buf_set_keymap(0, "v", "<Enter>", "<Plug>RSendSelection", {})
-- Create a table with the options to be passed to setup()localopts= {
R_app="radian",
R_args= {},
bracketed_paste=true,
min_editor_width=72,
rconsole_width=0,
rconsole_height=10,
config_tmux=false,
convert_range_int=true,
close_term=false,
auto_scroll=true,
wait=100,
csv_app="terminal:vd",
auto_quit=true,
disable_cmds= {
"RClearConsole",
"RCustomStart",
"RSPlot",
"RSaveClose",
},
}
-- Check if the environment variable "R_AUTO_START" exists.-- If using fish shell, you could put in your config.fish:-- alias r "R_AUTO_START=true nvim"ifvim.env.R_AUTO_START=="true" thenopts.auto_start="always"endrequire("r").setup(opts)
end,
},
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using R.Nvim for most of my R work. I think it is doing really well and I am grateful for it. I have one question about the R console however.
I have the R console set to appear at the bottom of my screen. Whenever I type in something, it scrolls so the next input line is at the top. This masks the output that was generated. Is there a way to keep it so the new input line is at the end?
I tried the
auto_scroll
to false but that meant my input line would disappear. Any help would be appreciated.Here's my config for the plugin:
Beta Was this translation helpful? Give feedback.
All reactions