luau-lsp
lua-language-server
luau-lsp | lua-language-server | |
---|---|---|
2 | 79 | |
174 | 3,024 | |
- | 2.2% | |
9.3 | 9.4 | |
2 days ago | about 21 hours ago | |
C++ | Lua | |
MIT License | 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.
luau-lsp
-
Northlight makes Alan Wake 2 shine
That's not it, I mean the "declare" statements that aren't even listed in the grammar, but are needed to give the type checker information about C API exports. The analyzer even hardcodes a bunch of them.
luau-lsp for example ships this globalTypes.d.lua file[1] for Roblox development and let's you configure your own.
[1]: https://github.com/JohnnyMorganz/luau-lsp/blob/4b7872349d9b8...
-
Ask HN: Looking for platforms, other than Roblox, that have adopted Luau
I use Luau in my games and tools [1], and I recommend it. While I can't speak to transitioning to it from Lua, since I didn't do that, I can say that it's fast, stable, sandboxing just works (important for your use case), and it's very well supported and regularly updated.
For context, I first started using Luau as an experimental hack by integrating it with Unity. I mostly just wanted fast and simple hot reloading. I found myself writing more and more of it, and now I'm writing most of my code in it.
VS Code support is pretty good via the luau-lsp language server [2]. Type support for certain code patterns isn't great yet, but there are RFCs to improve this.
They're also quietly working on native code gen and JIT support, e.g. this PR from a few hours ago [3].
Overall, recommended! You're not crazy.
[1] https://twitter.com/kineticpoet
[2] https://github.com/JohnnyMorganz/luau-lsp
[3] https://github.com/Roblox/luau/pull/1076
lua-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)
-
How to add lua-language-server to $PATH
And I was reading this installation guide and after "./bin/lua-language-server " I get this in terminal
-
New to lua
Not sure about typescript but there is a jsdoc equivalent: https://github.com/LuaLS/lua-language-server/wiki/Annotations
-
How complex can I make games in Lua?
Lua with lua-language-server and annotated types is a much nicer experience.
-
mini.nvim - release of version 0.8.0
For it to be language-aware (like provide suggestions for module/table/class methods/fields) you also need language server (like lua_ls for Lua). But even without it you should see suggestions from fallback method. If you don't, then 'mini.completion' is not installed and/or activated.
-
PSA: Changes to the mason.nvim registry
I also want to thank current & past GitHub sponsors who help finance costs associated with the plugin. I regularly pay the surplus forward to other devs whose tooling I heavily rely on (huge shout-out to sumneko for working on the Lua language server, without it a plugin of the complexity of mason.nvim would be impossible, go sponsor them here).
What are some alternatives?
glsl-language-server - Language server implementation for GLSL
lua-lsp - A Lua language server
luauDec - Decompiler for luau (https://luau-lang.org/)
luacheck - A tool for linting and static analysis of Lua code.
warframe-luau-dump - dumped luau warframe scripts (2024.02.16.17.13)
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
corona - Solar2D Game Engine main repository (ex Corona SDK)
lsp-mode - Emacs client/library for the Language Server Protocol
Language-Server - Experimental LSP suite for Pluto, a Lua dialect, with linting and completions.
lsp-zero.nvim - A starting point to setup some lsp related features in neovim.
luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua
nvim-cmp - A completion plugin for neovim coded in Lua.