diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-08-26 08:32:14 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-08-26 08:32:14 +0000 |
| commit | 8a3610d29df83d8632f8ee7c3afc779c12725531 (patch) | |
| tree | 4ecc1dfb59165569f52782353412fd51e85ad22a /doc/server_configurations.md | |
| parent | feat: improve default haxe_language_server init_options (#3284) (diff) | |
| download | nvim-lspconfig-8a3610d29df83d8632f8ee7c3afc779c12725531.tar nvim-lspconfig-8a3610d29df83d8632f8ee7c3afc779c12725531.tar.gz nvim-lspconfig-8a3610d29df83d8632f8ee7c3afc779c12725531.tar.bz2 nvim-lspconfig-8a3610d29df83d8632f8ee7c3afc779c12725531.tar.lz nvim-lspconfig-8a3610d29df83d8632f8ee7c3afc779c12725531.tar.xz nvim-lspconfig-8a3610d29df83d8632f8ee7c3afc779c12725531.tar.zst nvim-lspconfig-8a3610d29df83d8632f8ee7c3afc779c12725531.zip | |
docs: update server_configurations.md
skip-checks: true
Diffstat (limited to 'doc/server_configurations.md')
| -rw-r--r-- | doc/server_configurations.md | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 0490cd1d..237fe291 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -5247,9 +5247,20 @@ lspconfig.haxe_language_server.setup({ }) ``` -By default, an HXML compiler arguments file named `build.hxml` is expected in -your project's root directory. If your file is named something different, -specify it using the `init_options.displayArguments` setting. +By default, the language server is configured with the HXML compiler arguments +contained in the first `.hxml` file found in your project's root directory. +If you want to specify which one to use, set the `init_options.displayArguments` +setting: + +```lua +lspconfig.haxe_language_server.setup({ + -- ... + init_options = { + displayArguments = { "build.hxml" }, + }, +}) +``` + @@ -5270,13 +5281,15 @@ require'lspconfig'.haxe_language_server.setup{} ``` - `init_options` : ```lua - { - displayArguments = { "build.hxml" } - } + default value is set by on_new_config + ``` + - `on_new_config` : + ```lua + see source file ``` - `root_dir` : ```lua - root_pattern("*.hxml") + root_pattern("*.hxml", ".git") ``` - `settings` : ```lua |
