diff options
| author | github-actions <github-actions@github.com> | 2021-11-25 18:22:43 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2021-11-25 18:22:43 +0000 |
| commit | 767f863b65b535d1ef235495ebda52237ddd4452 (patch) | |
| tree | 0dcdb01d16696c416d4692f16a1a41f63413d95f /doc | |
| parent | fix: set correct cwd config key when unset (#1483) (diff) | |
| download | nvim-lspconfig-767f863b65b535d1ef235495ebda52237ddd4452.tar nvim-lspconfig-767f863b65b535d1ef235495ebda52237ddd4452.tar.gz nvim-lspconfig-767f863b65b535d1ef235495ebda52237ddd4452.tar.bz2 nvim-lspconfig-767f863b65b535d1ef235495ebda52237ddd4452.tar.lz nvim-lspconfig-767f863b65b535d1ef235495ebda52237ddd4452.tar.xz nvim-lspconfig-767f863b65b535d1ef235495ebda52237ddd4452.tar.zst nvim-lspconfig-767f863b65b535d1ef235495ebda52237ddd4452.zip | |
docs: update server_configurations.md
skip-checks: true
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/server_configurations.md | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 047b1085..0147e267 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -3396,9 +3396,6 @@ require'lspconfig'.julials.setup{} Default Values: cmd = { "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\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 ' } filetypes = { "julia" } - on_new_config = function(new_config, root_dir) - new_config.cmd_cwd = root_dir - end, root_dir = function(fname) return util.root_pattern 'Project.toml'(fname) or util.find_git_ancestor(fname) end, @@ -6888,6 +6885,12 @@ This server accepts configuration via the `settings` key. null +- **`Lua.completion.postfix`**: `string` + + Default: `"@"` + + null + - **`Lua.completion.requireSeparator`**: `string` Default: `"."` |
