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 committed 2025-03-27 12:40:11 +00:00
1 parent 73b568b071
commit cdbd218a82
4 files changed
+71 -2

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
Execute(Address splitting should function as intended):
AssertEqual ['foo', v:null], ale#lsp#SplitAddress('foo')
AssertEqual ['foo:', v:null], ale#lsp#SplitAddress('foo:')
AssertEqual ['foo', v:null], ale#lsp#SplitAddress('foo:0')
AssertEqual ['foo', 123], ale#lsp#SplitAddress('foo:123')
AssertEqual ['protocol:/foo:', v:null], ale#lsp#SplitAddress('protocol:/foo:')
AssertEqual ['protocol:/foo', v:null], ale#lsp#SplitAddress('protocol:/foo:0')
AssertEqual ['protocol:/foo', 123], ale#lsp#SplitAddress('protocol:/foo:123')
AssertEqual ['protocol:foo', v:null], ale#lsp#SplitAddress('protocol:foo')