lua-language-server
lua-language-server copied to clipboard
A language server that offers Lua language support - programmed in Lua
(Split from: https://github.com/LuaLS/lua-language-server/issues/2279) I would expect the following code to error with a missing-field for [0] ``` ---@class TestClass ---@field [0] string ---@field test string ---@param test TestClass local function...
Sometimes, a `@type` value can be very long, i.e. ```lua ---@type {filepath: string?, type: 'unknown'|'binary'|'stock'|'path', loader: function} ``` Of course, while I could clean-up the above by replacing `type` with...
* Example: ```lua ---@struct Student ---@field study_level integer ---@type Student local new_student = { study_level = 0, tobacco_level = 1, -- This should be error. } ``` * Usage: We...
How would one annotate that a function does not return anything in the current version of LuaLS? Note that this is subtly different from returning nil (https://stackoverflow.com/a/18526055/7376471).
### 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? Type Checking ### Expected Behaviour...
IntelliJ-SumnekoLua see https://plugins.jetbrains.com/plugin/22315-sumnekolua/versions/stable/365277 LSP4IJ see: https://github.com/redhat-developer/lsp4ij
### 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? Type Checking ### Expected Behaviour...
### How are you using the lua-language-server? NeoVim ### Which OS are you using? Windows ### What is the issue affecting? Completion, Diagnostics/Syntax Checking, Hover, Libraries ### Expected Behaviour Addding...
I did some research, and pretty much every other major language extension like javascript, c#/++ and python have settings to allow autocomplete to add brackets at the end of function...
### 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? Annotations, Type Checking, Completion ###...