lua-lsp
lua-lsp copied to clipboard
A Lua language server
Installation works by changing the protocol to SSH ``` $ sudo luarocks install --server=ssh://luarocks.org/dev lua-lsp # works ``` Installation fails with HTTP URL which is currently suggested in lua-lsp README...
I am trying to bring some updates to nixpkgs (https://github.com/NixOS/nixpkgs/pull/172096) and one of the problems is that lua-lsp requires dkjson `~> 2.5` but I would like to update dkjson to...
Any idea how I'd integrate this with the neovim built-in LSP? I'm using [lspconfig](https://github.com/neovim/nvim-lspconfig), but they only have a config for the sumneko Lua lsp, which IMHO is far too...
I edited $HOME/.luacompleterc ``` { "luaVersion": "5.1", "packagePath": "./?.lua;/home/user/.luarocks/share/lua/5.1/?.lua" } ``` I did luarocks install --local lua-cjson I added $HOME/.luarocks into package.path and package.cpath. When I use vim I can...
Hi, I am trying to clean up my configs and I am wondering if I can put luacompleterc under XDG_CONFIG_HOME? :) // molle
Here is the error output: ``` LSP :: Connected to [lsp-lua-lsp:83564]. LSP :: Error from the Language Server: .../stardiviner/.luarocks/share/lua/5.3/lua-lsp/methods.lua:703: attempt to get length of a nil value (field 'scopes') stack...
Not very familiar with Lua, so I don't know how to find much more info than this. It seems to start happening if I start using a variable without declaring...
:thinking: I'm not willing to write my own but it's interesting that it doesn't exist to begin with prior art: https://github.com/trixnz/lua-fmt written by the vscode server author https://github.com/trixnz/vscode-lua
Ideally, we should update our grammar to support the new features at the same time that we port to lua 5.4 as a runtime https://www.lua.org/versions.html
I just noticed the type sig of goto definition allows for multiple definition returns Use cases, if we have a method name without a type we should return a list...