lua-language-server
lua-language-server copied to clipboard
A language server that offers Lua language support - programmed in Lua
```lua ---@class base ---@class builder ---@generic T: base ---@overload fun(name: `T`): T local builder = {} local function __call(self, name) .... end setmetatable(builder, { __call = __call }) ``` Thats...
Is there a way I could set files under a specific directory to use a @meta file as an environment? If not, how would I accomplish this? In my project,...
closes #2451
不支持链接目录
### How are you using the lua-language-server? Visual Studio Code Extension (sumneko.lua) ### Which OS are you using? Windows ### What is the issue affecting? Diagnostics/Syntax Checking ### Expected Behaviour...
### How are you using the lua-language-server? Visual Studio Code Extension (sumneko.lua) ### Which OS are you using? Windows ### What is the issue affecting? Diagnostics/Syntax Checking ### Expected Behaviour...
fun类型问题
在---@overload fun(data:T):T 这种注释的情况下貌似没有办法使用泛型, 我需要  在cast_shot中识别到自己定义的字段类型,有使用泛型以外其他的办法吗
After fixing some errors and managing to correctly compile lua-language-server I executed `bin/lua-language-server` and it works, but when coping this single executable to `~/.local/bin` it stops working and give this...
> [!NOTE] > I couldn't find an issue for this. sorry if there's a duplicate. I propose updating the `@nodiscard` annotation to add a "reason" as to why not discard...
`T1?|T2?` is now parsed as `T1?`, whose correct form should be `(T1|T2)?` or `T1|T2|nil` or `field? T1|T2`. But many libraries (e.g. neovim plugins) are using this incorrect form. This misuse...
### How are you using the lua-language-server? NeoVim ### Which OS are you using? Windows WSL ### What is the issue affecting? Libraries ### Expected Behaviour Using busted and luassert...