Folowing Helix's languages documentation, you can
use nelua-lsp by adding an entry to the language-server
table, and be sure that the
nelua-lsp
value is present on language-servers
key of the nelua entry of the language
array:
Here's an example:
[[language]]
name = "nelua"
# [...]
language-servers = [ "nelua-lsp" ]
[language-server.nelua-lsp]
command = "nelua"
args = ["-L", "path/to/nelua-lsp", "--script", "path/to/nelua-lsp/main.lua"]
Using the vscode-lspconfig, add this to your settings.json
"vscode-lspconfig.serverConfigurations": [
{
"name": "nelua",
"document_selector": [
{
"language": "nelua"
}
],
"command": [
"nelua",
"-L",
"/path/to/nelua-lsp",
"--script",
"/path/to/nelua-lsp/main.lua"
]
}
]
Using the lite-xl-lsp plugin, add this to your init.lua
file
local lsp = require "plugins.lsp"
lsp.add_server({
name = "nelua_lsp",
language = "nelua",
file_patterns = { "%.nelua$" },
command = {
"nelua",
"-L",
"/path/to/nelua-lsp",
"--script",
"/path/to/nelua-lsp/main.lua"
}
})