diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-12-12 12:00:58 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-12-12 12:00:58 +0000 |
| commit | f451052bd6804e9e5ccd0ac874d7df8d3d4c55b9 (patch) | |
| tree | c8dee9b82a048647c26b0b28281c33523eef5eea /doc | |
| parent | fix(elixirls): smarter detection of root_dir for umbrella apps (#2911) (diff) | |
| download | nvim-lspconfig-f451052bd6804e9e5ccd0ac874d7df8d3d4c55b9.tar nvim-lspconfig-f451052bd6804e9e5ccd0ac874d7df8d3d4c55b9.tar.gz nvim-lspconfig-f451052bd6804e9e5ccd0ac874d7df8d3d4c55b9.tar.bz2 nvim-lspconfig-f451052bd6804e9e5ccd0ac874d7df8d3d4c55b9.tar.lz nvim-lspconfig-f451052bd6804e9e5ccd0ac874d7df8d3d4c55b9.tar.xz nvim-lspconfig-f451052bd6804e9e5ccd0ac874d7df8d3d4c55b9.tar.zst nvim-lspconfig-f451052bd6804e9e5ccd0ac874d7df8d3d4c55b9.zip | |
docs: update server_configurations.md
skip-checks: true
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/server_configurations.md | 8 | ||||
| -rw-r--r-- | doc/server_configurations.txt | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 7383d78a..7293a2b1 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -2969,6 +2969,8 @@ require'lspconfig'.elixirls.setup{ } ``` +'root_dir' is chosen like this: if two or more directories containing `mix.exs` were found when searching directories upward, the second one (higher up) is chosen, with the assumption that it is the root of an umbrella app. Otherwise the directory containing the single mix.exs that was found is chosen. + **Snippet to enable the language server:** @@ -2984,7 +2986,11 @@ require'lspconfig'.elixirls.setup{} ``` - `root_dir` : ```lua - util.find_git_ancestor(fname) or util.root_pattern 'mix.exs'(fname) or vim.loop.os_homedir() + {{see description above}} + ``` + - `single_file_support` : + ```lua + true ``` diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index 7383d78a..7293a2b1 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -2969,6 +2969,8 @@ require'lspconfig'.elixirls.setup{ } ``` +'root_dir' is chosen like this: if two or more directories containing `mix.exs` were found when searching directories upward, the second one (higher up) is chosen, with the assumption that it is the root of an umbrella app. Otherwise the directory containing the single mix.exs that was found is chosen. + **Snippet to enable the language server:** @@ -2984,7 +2986,11 @@ require'lspconfig'.elixirls.setup{} ``` - `root_dir` : ```lua - util.find_git_ancestor(fname) or util.root_pattern 'mix.exs'(fname) or vim.loop.os_homedir() + {{see description above}} + ``` + - `single_file_support` : + ```lua + true ``` |
