mirror of
https://github.com/dwinkler1/nvimConfig.git
synced 2026-05-22 20:13:32 -04:00
fixed R.nvim
This commit is contained in:
parent
4884bf685f
commit
07d2156dfb
7 changed files with 65 additions and 7 deletions
|
|
@ -44,6 +44,12 @@ end)
|
|||
-- r
|
||||
now(function()
|
||||
if nix.get_cat("r", false) then
|
||||
local cwd = vim.fn.getcwd(-1)
|
||||
vim.env.RNVIM_COMPLDIR = cwd .. "/.r-compl"
|
||||
vim.env.R_LIBS_USER = (vim.env.R_LIBS_USER or ""):gsub("%$PWD", cwd)
|
||||
vim.env.TMPDIR = cwd .. "/.r-tmp"
|
||||
vim.fn.mkdir(vim.env.RNVIM_COMPLDIR, "p")
|
||||
vim.fn.mkdir(vim.env.TMPDIR, "p")
|
||||
vim.g.rout_follow_colorscheme = true
|
||||
require("r").setup({
|
||||
-- Create a table with the options to be passed to setup()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue