Skip to content

Commit d8bf4c4

Browse files
docs: update configs.md
skip-checks: true
1 parent a13e521 commit d8bf4c4

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

doc/configs.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6497,6 +6497,11 @@ Julia project, you must make sure that the project is instantiated:
64976497
julia --project=/path/to/my/project -e 'using Pkg; Pkg.instantiate()'
64986498
```
64996499

6500+
To activate a Julia environment, use the `:LspJuliaActivateEnv` command. A prompt will ask you to select a Julia
6501+
environment from the list of environments found in the current working directory and the `environments/` folder of
6502+
`$JULIA_DEPOT_PATH` entries. You can also provide a path to a Julia environment directly.
6503+
Example: `:LspJuliaActivateEnv /path/to/my/project`.
6504+
65006505
Note: The julia programming language searches for global environments within the `environments/`
65016506
folder of `$JULIA_DEPOT_PATH` entries. By default this simply `~/.julia/environments`
65026507

@@ -6514,7 +6519,7 @@ Default config:
65146519
```lua
65156520
{ "julia" }
65166521
```
6517-
- `on_attach`: [../lsp/julials.lua:121](../lsp/julials.lua#L121)
6522+
- `on_attach`: [../lsp/julials.lua:127](../lsp/julials.lua#L127)
65186523
- `root_markers` :
65196524
```lua
65206525
{ "Project.toml", "JuliaProject.toml" }

doc/configs.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4709,6 +4709,11 @@ Note: In order to have LanguageServer.jl pick up installed packages or dependenc
47094709
Julia project, you must make sure that the project is instantiated >sh
47104710
julia --project=/path/to/my/project -e 'using Pkg; Pkg.instantiate()'
47114711

4712+
To activate a Julia environment, use the `:LspJuliaActivateEnv` command. A prompt will ask you to select a Julia
4713+
environment from the list of environments found in the current working directory and the `environments/` folder of
4714+
`$JULIA_DEPOT_PATH` entries. You can also provide a path to a Julia environment directly.
4715+
Example: `:LspJuliaActivateEnv /path/to/my/project`.
4716+
47124717
Note: The julia programming language searches for global environments within the `environments/`
47134718
folder of `$JULIA_DEPOT_PATH` entries. By default this simply `~/.julia/environments`
47144719

@@ -4721,7 +4726,7 @@ Default config:
47214726
{ "julia", "--startup-file=no", "--history-file=no", "-e", ' # Load LanguageServer.jl: attempt to load from ~/.julia/environments/nvim-lspconfig\n # with the regular load path as a fallback\n ls_install_path = joinpath(\n get(DEPOT_PATH, 1, joinpath(homedir(), ".julia")),\n "environments", "nvim-lspconfig"\n )\n pushfirst!(LOAD_PATH, ls_install_path)\n using LanguageServer, SymbolServer, StaticLint\n popfirst!(LOAD_PATH)\n depot_path = get(ENV, "JULIA_DEPOT_PATH", "")\n project_path = let\n dirname(something(\n ## 1. Finds an explicitly set project (JULIA_PROJECT)\n Base.load_path_expand((\n p = get(ENV, "JULIA_PROJECT", nothing);\n p === nothing ? nothing : isempty(p) ? nothing : p\n )),\n ## 2. Look for a Project.toml file in the current working directory,\n ## or parent directories, with $HOME as an upper boundary\n Base.current_project(),\n ## 3. First entry in the load path\n get(Base.load_path(), 1, nothing),\n ## 4. Fallback to default global environment,\n ## this is more or less unreachable\n Base.load_path_expand("@v#.#"),\n ))\n end\n @info "Running language server" VERSION pwd() project_path depot_path\n server = LanguageServer.LanguageServerInstance(stdin, stdout, project_path, depot_path)\n server.runlinter = true\n run(server)\n ' }
47224727
- filetypes: >lua
47234728
{ "julia" }
4724-
- on_attach (use "gF" to view): ../lsp/julials.lua:121
4729+
- on_attach (use "gF" to view): ../lsp/julials.lua:127
47254730
- root_markers: >lua
47264731
{ "Project.toml", "JuliaProject.toml" }
47274732
<

0 commit comments

Comments
 (0)