Role of languageserver going ahead #471
Replies: 5 comments 3 replies
-
|
You will miss things like rename, go to definition, etc. But this is something I would like to tackle in a near future. |
Beta Was this translation helpful? Give feedback.
-
|
Just a quick preview: |
Beta Was this translation helpful? Give feedback.
-
|
Very nice! One possible issue: nvimcom runs in our real R session, which means that if R is busy with a length operation nvimcom will be unresponsive. However, for any static analysis of code, not depending on knowledge of what objects are in R's memory, you could run another R instance as a job in the background. This is what |
Beta Was this translation helpful? Give feedback.
-
|
@PMassicotte implemented many features in our language server, and my # Disable languageserver features
options(
languageserver.server_capabilities = list(
# Use R.nvim's built-in language server
hoverProvider = FALSE,
signatureHelpProvider = FALSE,
completionProvider = FALSE,
completionItemResolve = FALSE,
definitionProvider = FALSE,
referencesProvider = FALSE,
documentHighlightProvider = FALSE,
documentSymbolProvider = FALSE,
# Use tree-sitter
semanticTokensProvider = FALSE,
foldingRangeProvider = FALSE,
# Use air (conform plugin)
documentFormattingProvider = FALSE,
documentRangeFormattingProvider = FALSE,
documentOnTypeFormattingProvider = FALSE,
# Are these useful?
documentLinkProvider = FALSE, # links are clickable in WezTerm
colorProvider = FALSE, # We don't need 657 color names
workspaceSymbolProvider = FALSE,
selectionRangeProvider = FALSE,
callHierarchyProvider = FALSE,
typeHierarchyProvider = FALSE,
# Use the languageserver
codeActionProvider = TRUE,
renameProvider = TRUE
)
)From all For diagnostics, it seems that jarl is better than |
Beta Was this translation helpful? Give feedback.
-
|
I am also working on the workspaceSymbols and the rename functionalities. Should be able to PR them this week. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Been a longtime user of R.Nvim and have been trying out the new inbuilt language server for completions. Works great!
Would I be losing anything if I were to drop r-languageserver altogether?
Beta Was this translation helpful? Give feedback.
All reactions