aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-09-04 00:41:08 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2025-09-04 00:41:08 +0000
commitb1f1a69547ec809349563033bb61b1fde214a369 (patch)
tree3fdf28d80100bb620bab1309c51dc26f1e0ae668
parentfix(expert): implement root_dir instead #4054 (diff)
downloadnvim-lspconfig-b1f1a69547ec809349563033bb61b1fde214a369.tar
nvim-lspconfig-b1f1a69547ec809349563033bb61b1fde214a369.tar.gz
nvim-lspconfig-b1f1a69547ec809349563033bb61b1fde214a369.tar.bz2
nvim-lspconfig-b1f1a69547ec809349563033bb61b1fde214a369.tar.lz
nvim-lspconfig-b1f1a69547ec809349563033bb61b1fde214a369.tar.xz
nvim-lspconfig-b1f1a69547ec809349563033bb61b1fde214a369.tar.zst
nvim-lspconfig-b1f1a69547ec809349563033bb61b1fde214a369.zip
docs: update configs.md
skip-checks: true
-rw-r--r--doc/configs.md10
-rw-r--r--doc/configs.txt8
2 files changed, 12 insertions, 6 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 2f3a83cc..7b7cb3ef 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -4008,6 +4008,11 @@ https://github.com/elixir-lang/expert
Expert is the official language server implementation for the Elixir programming language.
+'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:
```lua
vim.lsp.enable('expert')
@@ -4022,10 +4027,7 @@ Default config:
```lua
{ "elixir", "eelixir", "heex", "surface" }
```
-- `root_markers` :
- ```lua
- { ".git", "mix.exs" }
- ```
+- `root_dir`: [../lsp/expert.lua:13](../lsp/expert.lua#L13)
---
diff --git a/doc/configs.txt b/doc/configs.txt
index 533b492e..ab2d2885 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -2785,6 +2785,11 @@ https://github.com/elixir-lang/expert
Expert is the official language server implementation for the Elixir programming language.
+'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: >lua
vim.lsp.enable('expert')
@@ -2794,8 +2799,7 @@ Default config:
{ "expert" }
- filetypes: >lua
{ "elixir", "eelixir", "heex", "surface" }
-- root_markers: >lua
- { ".git", "mix.exs" }
+- root_dir (use "gF" to view): ../lsp/expert.lua:13
<
------------------------------------------------------------------------------