Closed ghost closed 1 year ago
For example, if the language server uses a custom TCP port, how could I specify it so TextAdept could know and use this port?
The README suggests using a function that returns a string followed by a configuration table (that will be converted to JSON and sent to the language server):
lsp.server_commands.cpp = function() return 'cquery', { cacheDirectory = '/tmp/cquery-cache', compilationDatabaseDirectory = io.get_project_root(), progressReportFrequencyMs = -1 } end
For example, if the language server uses a custom TCP port, how could I specify it so TextAdept could know and use this port?
@orbitalquark How to tell TextAdept to listen to a specific port?
You can't. This implementation operates over stdin and stdout.
You can't. This implementation operates over stdin and stdout.
You should add this to README.md.
Your wiki is useless @orbitalquark: https://github.com/orbitalquark/textadept/wiki/LSP-Configurations
At least, it must be something like this:
https://github.com/lite-xl/lite-xl-lsp
Taken from their config.lua (https://github.com/lite-xl/lite-xl-lsp/blob/master/config.lua):