aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGithub Actions <actions@github>2020-06-09 03:35:53 +0000
committerGithub Actions <actions@github>2020-06-09 03:35:53 +0000
commit22e711d04b2cd130f1c6e9c96a86d56d114f86d8 (patch)
tree22617ab99b2b5a6b6e2c634e05d679cf163e0eab
parentFix docstring (diff)
downloadnvim-lspconfig-22e711d04b2cd130f1c6e9c96a86d56d114f86d8.tar
nvim-lspconfig-22e711d04b2cd130f1c6e9c96a86d56d114f86d8.tar.gz
nvim-lspconfig-22e711d04b2cd130f1c6e9c96a86d56d114f86d8.tar.bz2
nvim-lspconfig-22e711d04b2cd130f1c6e9c96a86d56d114f86d8.tar.lz
nvim-lspconfig-22e711d04b2cd130f1c6e9c96a86d56d114f86d8.tar.xz
nvim-lspconfig-22e711d04b2cd130f1c6e9c96a86d56d114f86d8.tar.zst
nvim-lspconfig-22e711d04b2cd130f1c6e9c96a86d56d114f86d8.zip
[docgen] Update README.md
skip-checks: true
-rw-r--r--README.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index 3b730f91..1a00da67 100644
--- a/README.md
+++ b/README.md
@@ -2236,7 +2236,11 @@ require'nvim_lsp'.jsonls.setup{}
https://github.com/julia-vscode/julia-vscode
`LanguageServer.jl` can be installed via `:LspInstall julials` or by yourself the `julia` and `Pkg`:
```sh
-julia -e 'using Pkg; Pkg.add("LanguageServer")'
+julia --project=/home/runner/.cache/nvim/nvim_lsp/julials -e 'using Pkg; Pkg.add("LanguageServer"); Pkg.add("SymbolServer")'
+```
+If you want to install the LanguageServer manually, you will have to ensure that the Julia environment is stored in this location:
+```vim
+:lua print(require'nvim_lsp'.util.path.join(require'nvim_lsp'.util.base_install_dir, "julials"))
```
Can be installed in Nvim with `:LspInstall julials`
@@ -2449,7 +2453,7 @@ This server accepts configuration via the `settings` key.
require'nvim_lsp'.julials.setup{}
Default Values:
- cmd = { "julia", "--project", "--startup-file=no", "--history-file=no", "-e", " using LanguageServer;\n using Pkg;\n server = LanguageServer.LanguageServerInstance(stdin, stdout, false, dirname(Pkg.Types.Context().env.project_file));\n server.runlinter = true; run(server);\n " }
+ cmd = { "julia", "--project=/home/runner/.cache/nvim/nvim_lsp/julials", "--startup-file=no", "--history-file=no", "-e", ' using Pkg;\n Pkg.instantiate()\n using LanguageServer; using SymbolServer;\n depot_path = get(ENV, "JULIA_DEPOT_PATH", "")\n project_path = pwd()\n # Make sure that we only load packages from this environment specifically.\n empty!(LOAD_PATH)\n push!(LOAD_PATH, "@")\n @info "Running language server" env=Base.load_path()[1] pwd() project_path depot_path\n server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path);\n server.runlinter = true;\n run(server);\n ' }
filetypes = { "julia" }
root_dir = <function 1>
```