summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Ranke <johannes.ranke@jrwb.de>2024-12-13 16:36:29 +0100
committerJohannes Ranke <johannes.ranke@jrwb.de>2024-12-13 16:36:29 +0100
commite27d787f385ee4c975bf8b534e888d6a485eceb9 (patch)
tree6a94d61d87cb18955e9b63ce0be8cce13297eee7
parent12253d3e7c209f6aa77fe58e95a644eb355e1548 (diff)
Autostart R.vimnvim-lua
-rw-r--r--nvim/lua/plugins/R.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/nvim/lua/plugins/R.lua b/nvim/lua/plugins/R.lua
index b4dec39..1188a26 100644
--- a/nvim/lua/plugins/R.lua
+++ b/nvim/lua/plugins/R.lua
@@ -36,13 +36,8 @@ return {
"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"
- if vim.env.R_AUTO_START == "true" then
- opts.auto_start = "on startup"
- opts.objbr_auto_start = true
- end
+ opts.auto_start = "on startup"
+ opts.objbr_auto_start = true
require("r").setup(opts)
end,
}

Contact - Imprint