languageserver icon indicating copy to clipboard operation
languageserver copied to clipboard

specify what you mean by language server configuration

Open jam1015 opened this issue 2 years ago • 1 comments

you say in the documentation:

Server capabilities are defined in capabilities.R. Users could override the capabilities by specifying the LSP configuration setting server_capabilities or options(languageserver.server_capabilities) in .Rprofile. For example, to turn off definitionProvider, one could either use LSP configuration

"r": {
    "lsp": {
        "server_capabilities": {
            "definitionProvider": false
        }
    }
}

or R options

options(
    languageserver.server_capabilities = list(
        definitionProvider = FALSE
    )

someone who knows R should be able to figure out that the R options can go into the .Rprofile but I am not sure what file this JSON example refers to, or where to put it; it would be nice if context was added for newcomers to LSP (like me);especially people coming from RStudio where we don't have to think about LSP. You could say 'LSP configuration via this file located at such and such location in linux/mac and such and such location in windows`. That would be helpful.

jam1015 avatar Jan 26 '23 06:01 jam1015

"r": {
    "lsp": {
        "server_capabilities": {
            "definitionProvider": false
        }
    }
}

this is the configuration file for the lsp client (that is the editor or the editor extension itself). Which can be vscode, or coc.nvim depending on what editors you are using.

milanglacier avatar Jun 07 '23 07:06 milanglacier