mirror of
https://github.com/neovim/nvim-lspconfig
synced 2024-09-16 14:24:07 +02:00
docs: update server_configurations.md
skip-checks: true
This commit is contained in:
parent
acf17dc452
commit
8a3610d29d
2 changed files with 40 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue