diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-04-18 17:44:38 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2025-04-18 17:44:38 +0200 |
| commit | f8b5cbe6312b568def1f91d747e2cdb8984fdf2e (patch) | |
| tree | c1baf319b22d8ccc7d3468276b5ba9a26dfa2775 /lsp/julials.lua | |
| parent | feat: angularls #3746 (diff) | |
| download | nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.gz nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.bz2 nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.lz nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.xz nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.zst nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.zip | |
docs: cleanup
- brief should live at the top of each file
- fix indentation for some docs
Diffstat (limited to 'lsp/julials.lua')
| -rw-r--r-- | lsp/julials.lua | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/lsp/julials.lua b/lsp/julials.lua index 0dd8c6b3..17565a7c 100644 --- a/lsp/julials.lua +++ b/lsp/julials.lua @@ -1,3 +1,28 @@ +---@brief +--- +--- https://github.com/julia-vscode/julia-vscode +--- +--- LanguageServer.jl can be installed with `julia` and `Pkg`: +--- ```sh +--- julia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.add("LanguageServer")' +--- ``` +--- where `~/.julia/environments/nvim-lspconfig` is the location where +--- the default configuration expects LanguageServer.jl to be installed. +--- +--- To update an existing install, use the following command: +--- ```sh +--- julia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.update()' +--- ``` +--- +--- Note: In order to have LanguageServer.jl pick up installed packages or dependencies in a +--- Julia project, you must make sure that the project is instantiated: +--- ```sh +--- julia --project=/path/to/my/project -e 'using Pkg; Pkg.instantiate()' +--- ``` +--- +--- Note: The julia programming language searches for global environments within the `environments/` +--- folder of `$JULIA_DEPOT_PATH` entries. By default this simply `~/.julia/environments` + local root_files = { 'Project.toml', 'JuliaProject.toml' } local function activate_env(path) @@ -91,30 +116,6 @@ local cmd = { ]], } ----@brief ---- --- https://github.com/julia-vscode/julia-vscode --- --- LanguageServer.jl can be installed with `julia` and `Pkg`: --- ```sh --- julia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.add("LanguageServer")' --- ``` --- where `~/.julia/environments/nvim-lspconfig` is the location where --- the default configuration expects LanguageServer.jl to be installed. --- --- To update an existing install, use the following command: --- ```sh --- julia --project=~/.julia/environments/nvim-lspconfig -e 'using Pkg; Pkg.update()' --- ``` --- --- Note: In order to have LanguageServer.jl pick up installed packages or dependencies in a --- Julia project, you must make sure that the project is instantiated: --- ```sh --- julia --project=/path/to/my/project -e 'using Pkg; Pkg.instantiate()' --- ``` --- --- Note: The julia programming language searches for global environments within the `environments/` --- folder of `$JULIA_DEPOT_PATH` entries. By default this simply `~/.julia/environments` return { cmd = cmd, filetypes = { 'julia' }, |
