neodev.nvim
💻 Neovim setup for init.lua and plugin development with full signature help, docs and completion for the nvim lua API. (by folke)
lua-language-server
A language server that offers Lua language support - programmed in Lua (by LuaLS)
Our great sponsors
neodev.nvim | lua-language-server | |
---|---|---|
49 | 79 | |
1,931 | 3,011 | |
- | 4.8% | |
9.1 | 9.4 | |
about 1 month ago | 2 days ago | |
Lua | Lua | |
Apache License 2.0 | 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.
neodev.nvim
Posts with mentions or reviews of neodev.nvim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-11-10.
-
Configuring Neovim with Fennel
Also the vim API signature is not available using the fennel-language-server In lua you can install neodev and you will get some nice lsp suggestions with the vim API, this is sadly not possible in fennel right now
-
Lsp and files outside nvim/lua/
Other than the root_dir problem, I think the lsp server might have been attached but configuration would be different. For instance, if one is using folke's neodev for API completion (https://github.com/folke/neodev.nvim/issues/158) it would work differently for nvim config files and other lua workspaces.
- Editing init.lua with lua_ls on gives "Undefined global : vim" ?
-
Best way to debug performance issues?
Try to debug what happens on exit, maybe https://neovim.io/doc/user/starting.html#-V works. Regarding nvim-cmp being slow, do you have https://github.com/folke/neodev.nvim installed? If yes, try removing it and checking if it's an issue. It's been slowing down my completion for a while until I pinpointed the issue (and it was slowing it down always, not just when editing lua code).
-
Unable to setup lua_ls, though other servers work
You can try neodev.nvim. It's really great especially if you're planning for plugin development.
-
Help with autocomplete for plugins
Are you using https://github.com/folke/neodev.nvim ?
- how to fix LSP , vim undefined!
-
Get Lua LSP to know about vim.api
Okay i figured it out myself https://github.com/folke/neodev.nvim provides lua files with the required type signatures.
- LSP for your lua config
- Amazing LSP for your lua config
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 neodev.nvim and lua-language-server you can also consider the following projects:
neogen - A better annotation generator. Supports multiple languages and annotation conventions.
lua-lsp - A Lua language server
nvim-lspconfig - Quickstart configs for Nvim LSP
luacheck - A tool for linting and static analysis of Lua code.
nvim-cmp - A completion plugin for neovim coded in Lua.
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
nvim-lua-guide - A guide to using Lua in Neovim
lsp-mode - Emacs client/library for the Language Server Protocol
IntelliJ-EmmyLua - Lua IDE/Debugger Plugin for IntelliJ IDEA
lsp-zero.nvim - A starting point to setup some lsp related features in neovim.
neoconf.nvim - 💼 Neovim plugin to manage global and project-local settings
neodev.nvim vs neogen
lua-language-server vs lua-lsp
neodev.nvim vs nvim-lspconfig
lua-language-server vs luacheck
neodev.nvim vs nvim-cmp
lua-language-server vs coc.nvim
neodev.nvim vs nvim-lua-guide
lua-language-server vs lsp-mode
neodev.nvim vs IntelliJ-EmmyLua
lua-language-server vs lsp-zero.nvim
neodev.nvim vs neoconf.nvim
lua-language-server vs nvim-cmp