Replies: 3 comments 3 replies
-
This is interesting, thanks for sharing! As a newcomer to neovim/R.nvim (15 years on Emacs+ESS) I must confess that I do get confused about the neovim working directory, and find it isn't always where I opened the file from. Two thoughts:
if found_line < 1 and notifyme then
vim.notify("No valid setwd() found", vim.log.levels.WARN)
return
end
if found_line < 1 then
if notifyme then
vim.notify("No valid setwd() found", vim.log.levels.WARN)
end
return
end
It's always interesting to see others workflows, especially for tools that I am still learning (I rarely use RStudio, and I haven't quick managed to fully switch from my Emacs finger memory). |
Beta Was this translation helpful? Give feedback.
-
Thansk, @caeu ! I have this in my vim.o.autochdir = true I usually open a terminal, run the |
Beta Was this translation helpful? Give feedback.
-
vim.o.autochdir = true I didn't know about this. Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I often find myself aligning Neovim’s working directory with the setwd() path in my R scripts, rather than the other way around. Eventually, I automated it and figured it might be useful, spark some ideas, or be something others can build on. Here’s the snippet.
Beta Was this translation helpful? Give feedback.
All reactions