diff options
| author | Johannes Ranke <johannes.ranke@jrwb.de> | 2024-12-13 16:36:29 +0100 |
|---|---|---|
| committer | Johannes Ranke <johannes.ranke@jrwb.de> | 2024-12-13 16:36:29 +0100 |
| commit | e27d787f385ee4c975bf8b534e888d6a485eceb9 (patch) | |
| tree | 6a94d61d87cb18955e9b63ce0be8cce13297eee7 | |
| parent | 12253d3e7c209f6aa77fe58e95a644eb355e1548 (diff) | |
Autostart R.vimnvim-lua
| -rw-r--r-- | nvim/lua/plugins/R.lua | 9 |
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, } |
