lite-xl / lite-xl-lsp

LSP Plugin for Lite XL editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How could I specify the TCP port?

iahung opened this issue · comments

For example, if the language server uses a custom TCP port, how could I specify it so Lite XL could know and use this port?

There is no support for it at the moment.
In the past I experimented with the godot language server by using netcat:

local lsp = require "plugins.lsp"
lsp.add_server {
  name = "godot-language-server",
  language = "gdscript",
  file_patterns = { "%.gd$", "%.tscn$" },
  command = {"netcat", "localhost", "6005"},
  verbose = false
}

We might add direct support for it in the future.

There is no support for it at the moment. In the past I experimented with the godot language server by using netcat:

local lsp = require "plugins.lsp"
lsp.add_server {
  name = "godot-language-server",
  language = "gdscript",
  file_patterns = { "%.gd$", "%.tscn$" },
  command = {"netcat", "localhost", "6005"},
  verbose = false
}

We might add direct support for it in the future.

Please consider adding direct support for it.

@Guldoman Does this implementation of LSP only support operating over stdin and stdout?

Yes, but you can use the netcat method (or an alternative available on your OS) to make it work over sockets.