Add Neovim TCP connections to language servers

Support TCP connections to language servers through Neovim's built in
client. In all but what is currently the nightly builds of Neovim
connections via a hostname will fail, but connections via an IP address
should function. We will still enable the built in Neovim client by
default anyway, as LSP clients very rarely connect over TCP.
This commit is contained in:
w0rp
2025-03-19 18:39:05 +00:00
parent 73b568b071
commit cdbd218a82
4 changed files with 71 additions and 2 deletions

View File

@@ -476,6 +476,11 @@ functionality for Neovim's LSP client should work as expected, and this
ensures ALE integrates well with other plugins that rely on Neovim's LSP
client.
NOTE: Neovim versions below `0.11.0` do not support socket connections to
language servers when the `address` defined in ALE uses a hostname instead of
an IP address. To work around this, configure language clients with an IP
address instead of a hostname, or revert back to ALE's custom LSP client.
See |lsp| for information on Neovim's built in LSP client.
For diagnostics, for computing problems to show via ALE, ALE overrides the