LuaHelper
lua-language-server
LuaHelper | lua-language-server | |
---|---|---|
3 | 84 | |
679 | 3,690 | |
2.8% | 3.4% | |
7.9 | 9.5 | |
6 months ago | 17 days ago | |
Go | Lua | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
LuaHelper
-
Alternative Lua Language Server
LuaLS/lua-language-server aka Sumneko Lua is not the only Lua Language Server implemented in LSP standard, there are 3 I know of, one no longer maintained and the other is Tencent/LuaHelper (https://github.com/Tencent/LuaHelper)
-
Studio Code Extension???
I'm using lua-language-server, but there's also lua helper. Try both (separately) and see which fits you best.
-
Sumneko eats my memory until OOM
Hi, there's a new Lua server luahelper being actively developed here: https://github.com/Tencent/LuaHelper. It is written in Go and claims the abilities of real-time detection, millisecond output detection results, perfectly support editing and testing of 1000+ file project.
lua-language-server
-
Lune (Rust-based Luau runtime) 0.9.0 released
Yep. Luau has an LSP so you should be able to get all that.
There is no support for Luau in Love2D though. You would have to author your code in Teal (typed lua to lua compiler) and then compile that to Lua to be run in Love: https://github.com/teal-language/tl
You can get the Lua LSP working in Love2D with full completion support by the way. The Lua LSP has 3rd party libraries included in it. You can see all the preinstalled ones here: https://github.com/LuaLS/lua-language-server/tree/master/3rd
Support for them as built-ins will be removed at some point though. But you can always add them yourself: https://github.com/LuaLS/lua-language-server/wiki/Settings#w... using the files from here: https://github.com/LuaCATS/love2d/
It looks like the easiest way to support them is using a `.luarc.json` file though: https://github.com/LuaLS/lua-language-server/wiki/Configurat...
Here is a project that is already set up with a config file that you should be able to just copy: https://github.com/jonasgeiler/love2d-joystick-tester/blob/m...
-
Why Fennel?
Fennel is indeed nice and I rewrote my config too, but looked back ~2 years later and rewrote in again in Lua. I think Fennel for configuration is not justified and just adds complexity. Also the tools are not there: two existing language servers[1][2] can't compete with Sumneko's Lua language server[3] and they are fennel-exclusive and clueless about Lua code. I still like Fennel for writing more complicated code (my plugins: [4][5]) because of neat features like pattern matching and structural decomposition, both are surprisingly robust and I had doubts initially.
[1]: https://git.sr.ht/~xerool/fennel-ls/
[2]: https://github.com/rydesun/fennel-language-server
[3]: https://github.com/LuaLS/lua-language-server
[4]: https://gitlab.com/repetitivesin/16cm.nvim/-/tree/main
[5]: https://gitlab.com/repetitivesin/madol.nvim
-
Polyglot: Lua (Part 0)
Lua supports most of this primarily through community packages. luarocks is the Lua package manager. Lua does not ship with a unit testing framework by default, but the community seems to have selected luaunit as the defacto testing library. LSP and linting support is provided through the lua-language-server and code formatting is handled through stylua. However, I can't find tooling similar to Python's bandit to perform security audits. I believe this to be an open area of Lua library development.
-
Lua Is So Underrated
I just started using lua and have types in vscode using lua annotations. https://github.com/LuaLS/lua-language-server/wiki/Annotation...
-
What do I think about Lua after shipping a project with 60k lines of code?
There is https://github.com/LuaLS/lua-language-server
> Edit: FYI I use IntelliJ with Lua support,
In other words, you don't like Lua, because your favorite IDE doesn't support it? (Or maybe it does, when you install the aforementioned language server)
-
Some questions about code formatting with lsp-zero and mason
Check the documentation of lua_ls
-
Beginner question: is there any coding standard for documenting Lua functions or tables emulating OOP?
You can use LLS extension for VSCode. Documentation: https://github.com/LuaLS/lua-language-server/wiki/Annotations
-
Lua: The Little Language That Could
There's lua-language-server which works with types defined in definition files and/or annotations in comments.
-
Documentation Comment highlighting with TreeSitter
Lastly, neovim now supports semantic token highlighting which uses semantic tokens from LSP servers to provide even better, language specific highlighting. Some LSP servers support semantic tokens for doc comments. The lua language server is a good example. Unfortunately, if you're using a language like C or C++, the language servers do not provide semantic tokens for comments because doxygen style comments are not specific to those languages so you might be out of luck for semantic token highlighting.
-
This little thing bugs me: in lua LSP popup content, the closing paren is always highlighted red
I think it is because the language server send a different type for the first line: https://github.com/LuaLS/lua-language-server/blob/eeffd1462b892fda5d01282acf840ba0e154e467/script/core/hover/label.lua (might be one of the other files here, not label)
What are some alternatives?
protocol - Package protocol implements Language Server Protocol specification in Go
luacheck - A tool for linting and static analysis of Lua code.
fidget.nvim - 💫 Extensible UI for Neovim notifications and LSP progress messages.
lua-lsp - A Lua language server
nvim-lspconfig - Quickstart configurations for the Nvim LSP client
lsp-zero.nvim - A starting point to setup some lsp related features in neovim.