diff options
| -rw-r--r-- | doc/configs.md | 10 | ||||
| -rw-r--r-- | doc/configs.txt | 10 |
2 files changed, 14 insertions, 6 deletions
diff --git a/doc/configs.md b/doc/configs.md index 7b7cb3ef..25531a83 100644 --- a/doc/configs.md +++ b/doc/configs.md @@ -3537,7 +3537,9 @@ https://github.com/elixir-lsp/elixir-ls chmod +x /path/to/elixir-ls/language_server.sh ``` -**By default, elixir-ls doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of your unzipped elixir-ls. +**By default, elixir-ls doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about +your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and +~ are not expanded) of your unzipped elixir-ls. ```lua vim.lsp.config('elixirls', { @@ -3549,7 +3551,9 @@ vim.lsp.config('elixirls', { }) ``` -'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. +'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 @@ -3561,7 +3565,7 @@ Default config: ```lua { "elixir", "eelixir", "heex", "surface" } ``` -- `root_dir`: [../lsp/elixirls.lua:30](../lsp/elixirls.lua#L30) +- `root_dir`: [../lsp/elixirls.lua:34](../lsp/elixirls.lua#L34) --- diff --git a/doc/configs.txt b/doc/configs.txt index ab2d2885..dc6748a2 100644 --- a/doc/configs.txt +++ b/doc/configs.txt @@ -2415,7 +2415,9 @@ https://github.com/elixir-lsp/elixir-ls chmod +x /path/to/elixir-ls/language_server.sh ``` -**By default, elixir-ls doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and ~ are not expanded) of your unzipped elixir-ls. +**By default, elixir-ls doesn't have a `cmd` set.** This is because nvim-lspconfig does not make assumptions about +your path. You must add the following to your init.vim or init.lua to set `cmd` to the absolute path ($HOME and +~ are not expanded) of your unzipped elixir-ls. >lua vim.lsp.config('elixirls', { -- Unix @@ -2425,7 +2427,9 @@ https://github.com/elixir-lsp/elixir-ls ... }) -'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. +'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('elixirls') @@ -2434,7 +2438,7 @@ Snippet to enable the language server: >lua Default config: - filetypes: >lua { "elixir", "eelixir", "heex", "surface" } -- root_dir (use "gF" to view): ../lsp/elixirls.lua:30 +- root_dir (use "gF" to view): ../lsp/elixirls.lua:34 < ------------------------------------------------------------------------------ |
