tree-sitter-lua
Neovim Tree Sitter Lua Grammar & Library (by tjdevries)
lua-language-server
A language server that offers Lua language support - programmed in Lua (by LuaLS)
tree-sitter-lua | lua-language-server | |
---|---|---|
5 | 79 | |
113 | 3,043 | |
- | 2.9% | |
4.9 | 9.4 | |
about 2 months ago | 6 days ago | |
Lua | Lua | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
tree-sitter-lua
Posts with mentions or reviews of tree-sitter-lua.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-21.
-
Generating docs for plugins?
As an alternative, telescope.nvim leverages TJs tree-sitter-lua that is relatively easy to setup as per the project README. I've done it twice for telescope extensions.
-
mini.doc - generate help files from EmmyLua-like annotations
I am happy to announce mini.doc - module of mini.nvim for generating help files (what you read when using :help) from EmmyLua-like annotations (not fully complying with this standard but very close). The basic idea is to keep documentation close to Lua implementation and generate help files automatically. It was written mainly to document 'mini.nvim' (instead of previous great but not that flexible tjdevries/tree-sitter-lua), but other people can also benefit from this. And not only plugin authors: general user can also document their Neovim Lua setup!
-
Alternative Lua parser for nvim-treesitter. It closely follows the syntax of Lua in extended BNF (https://www.lua.org/manual/5.1/manual.html#8).
Interesting, you seem to have done for this a lot of the reasons I created this parser awhile back: https://github.com/tjdevries/tree-sitter-lua
-
Octave and Matlab cmp sources
For documentation, I can highly recommend: https://github.com/tjdevries/tree-sitter-lua
- Noticing a lot of new *.nvim plugins do not have help files
lua-language-server
Posts with mentions or reviews of lua-language-server.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-01.
-
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?
When comparing tree-sitter-lua and lua-language-server you can also consider the following projects:
cmp-matlab
lua-lsp - A Lua language server
cmp-octave
luacheck - A tool for linting and static analysis of Lua code.
md2vim - Tool for automatically converting markdown to vimdoc format
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
tree-sitter-jsdoc - JSDoc grammar for Tree-sitter
lsp-mode - Emacs client/library for the Language Server Protocol
lemmy-help - Every one needs help, so lemmy-help you! A CLI to generate vim/nvim help doc from emmylua
lsp-zero.nvim - A starting point to setup some lsp related features in neovim.
lush.nvim - Create Neovim themes with real-time feedback, export anywhere.
nvim-cmp - A completion plugin for neovim coded in Lua.
tree-sitter-lua vs cmp-matlab
lua-language-server vs lua-lsp
tree-sitter-lua vs cmp-octave
lua-language-server vs luacheck
tree-sitter-lua vs md2vim
lua-language-server vs coc.nvim
tree-sitter-lua vs tree-sitter-jsdoc
lua-language-server vs lsp-mode
tree-sitter-lua vs lemmy-help
lua-language-server vs lsp-zero.nvim
tree-sitter-lua vs lush.nvim
lua-language-server vs nvim-cmp