Skip to content

Commit

Permalink
fix(r-language-server): use --no-echo instead of --slave (#3280)
Browse files Browse the repository at this point in the history
Starting from R version 4.0.0, the command line option `--slave` were
renamed to `--no-echo`.

See the relevant news for 4.0.0:
https://cran.r-project.org/bin/windows/base/old/4.0.0/NEWS.R-4.0.0.html
and the corresponding commit:
wch/r-source@f1ff49e
  • Loading branch information
mutlusun authored Aug 23, 2024
1 parent a7f0f9c commit 04f41cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspconfig/server_configurations/r_language_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local util = require 'lspconfig.util'

return {
default_config = {
cmd = { 'R', '--slave', '-e', 'languageserver::run()' },
cmd = { 'R', '--no-echo', '-e', 'languageserver::run()' },
filetypes = { 'r', 'rmd' },
root_dir = function(fname)
return util.find_git_ancestor(fname) or vim.loop.os_homedir()
Expand Down

0 comments on commit 04f41cd

Please sign in to comment.