A library aimed at making the construction of language servers in Lua easier. For general information about the LSP, see the VSCode extension guide, which also describes what language servers are for and the problems they solve. For precise information about what features the server can provide and how the protocol is followed, see the LSP specification.
lsp-lib is packaged as a module on LuaRocks, so it can be installed there as shown below.
$ luarocks --dev install lsp-libLua Language Server definitions are included with the rock in lua_modules. The path is roughly outlined in the example below.
See the doc/ folder for a tutorial and examples.
Documentation can be found here. (This is also not set up yet!)
$ git clone https://github.com/goldenstein64/lua-lsp-lib
# set up `.env` or `.envrc` with your environment manager
# For Windows, I recommend `PS-Dotenv`
$ luarocks build --deps-only --pinThe lsp-lib/ folder contains all the source code.
Tests are located in the spec/ folder. Busted and MoonScript are used to run them. They can be run using the following command.
$ luarocks test