lua-language-server
lua-language-server copied to clipboard
A language server that offers Lua language support - programmed in Lua
### How are you using the lua-language-server? Visual Studio Code Extension (sumneko.lua) ### Which OS are you using? Linux ### What is the issue affecting? Formatting ### Expected Behaviour do...
### How are you using the lua-language-server? NeoVim ### Which OS are you using? MacOS ### What is the issue affecting? Completion ### Expected Behaviour I'm writing a completion engine...
### How are you using the lua-language-server? Kakoune ### Which OS are you using? Linux ### What is the issue affecting? Diagnostics/Syntax Checking ### Expected Behaviour No diagnostic is given....
### 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? Other ### Expected Behaviour I...
In TypeScript this is supported by "[narrowing](https://www.typescriptlang.org/docs/handbook/2/narrowing.html)" Consider this example: ```lua ---@alias ChatAction { type: '"chat"', targetName: string, msg: string } ---@alias NotifyAction { type: '"notify"', msg: string, colour: number...
I found some logic in diagnostics/init.lua that doesn't work as expected: https://github.com/LuaLS/lua-language-server/blob/87abc4245f2a24e1cc35851b6464af9588934286/script/core/diagnostics/init.lua#L158 tries to sort diagnostics by cost to run cheap diags first. However, the code to measure to runtime...
### How are you using the lua-language-server? NeoVim ### Which OS are you using? Linux ### What is the issue affecting? Other ### Expected Behaviour `lua-language-server` should create the cache...
I would like to be able to recycle a list of parameters (and types), sometimes with an extra parameter or a different set of return values. I only know how...
In my project I have a special Lua file used to give type hint, it defines many field such as: ``` ---@class UnityEngine.TransitionType ---@field Normal UnityEngine.TransitionType ---@field Entry UnityEngine.TransitionType ---@field...
I like [TypeScript's `keyof` operator](https://www.typescriptlang.org/docs/handbook/2/keyof-types.html) that basically suggests that the value of a given string must match one of the properties/keys of a specified object. In Lua, a type declared...