From e27d787f385ee4c975bf8b534e888d6a485eceb9 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 13 Dec 2024 16:36:29 +0100 Subject: Autostart R.vim --- nvim/lua/plugins/R.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'nvim/lua') 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, } -- cgit v1.2.3