From 8a3610d29df83d8632f8ee7c3afc779c12725531 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 26 Aug 2024 08:32:14 +0000 Subject: docs: update server_configurations.md skip-checks: true --- doc/server_configurations.md | 27 ++++++++++++++++++++------- doc/server_configurations.txt | 27 ++++++++++++++++++++------- 2 files changed, 40 insertions(+), 14 deletions(-) (limited to 'doc') 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 diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index 0490cd1d..237fe291 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -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 -- cgit v1.2.3-70-g09d2