lua-language-server
lua-language-server copied to clipboard
A language server that offers Lua language support - programmed in Lua
**Describe the bug** Nested table are keys not suggested in different scope **To Reproduce**  **Expected behavior** `self.table.a` should be suggested
**Feature request** I'd want a way to define the size of arrays. I propose the following: ```Lua ---@type string[3] local arr = {} ```
Allow the ability to specify a default value for optional params. Example: ```lua --- @param a number --- @param b=[32] number --- @param c=[' '] string --- @param d=[] any...
Below, I have a generic list that uses fluid interface to return itself for some methods: ```lua --- @class List local List = {} --- @generic T : List, V,...
**Describe the bug** https://github.com/sumneko/lua-language-server/blob/f760dc359b389c20a0d48bef463d14800e67894c/script/core/formatting.lua#L5-L25 As a server, we should diff the document and the return result and generate the edits for the client. If the server returns totally text result,...
I have a problem when concerning the [lpeg library](http://www.inf.puc-rio.br/~roberto/lpeg/). The [re module](http://www.inf.puc-rio.br/~roberto/lpeg/re.html) has a conditional `if` that defines re globally if and only if the version is Lua 5.1. However...
 ---@field xxx table
**Describe the bug** No argument typing for the function declaration **Screenshots** In v2.5.1  In v2.6.0  PS: no semantic coloring for parameters **Environment :** - OS: Windows - Client:...
Some Lua based domain specific languages use an extended character set for identifiers, this is easily achieved by modifying e.g. alnum in luaconf.h, similar in LuaJIT and also is adjustable...
Can I exclude all variables that start with `g_` from the lowercase warning. If yes, then how do I do that?