luacheck
import.nvim
Our great sponsors
luacheck | import.nvim | |
---|---|---|
14 | 18 | |
1,864 | 170 | |
- | - | |
0.0 | 0.8 | |
over 1 year ago | about 1 year ago | |
Lua | 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.
luacheck
-
strict.lua
Not directly related, but luacheck can also help with this.
-
Lua is eye candy
Yeah. While you're at it, make a habit of running luacheck on your files as it helps catch a lot of these issues that can sneak in by mistake: https://github.com/mpeterv/luacheck
-
Help me reload my lua config! :)
Using something like https://github.com/mpeterv/luacheck might be helpful too. Will check all the files in a directory and will let you know which one might be problematic.
-
Lsp: Execute callback after server initialized
I'm trying to setup luacheck (via null-ls) to run alongside sumneko-lua (via nvim-lspconfig).
-
A History of Lua
Most of the time nothing is used. The thing is that iterating is so quick, that you find the problems really fast.
Although, I've been using luacheck https://github.com/mpeterv/luacheck. It is quite nice, but you have to write down the global variables by hand on the config file.
-
Writing a neovim plugin. Please send criticisms to make the code better
Check out luacheck. It can help spot typos or mistakes you've made and warn against anti-patterns. I'd honestly only look into setting it up locally because there's no benefit to putting it in a CI pipeline unless you have one for another reason IMO. This should be all the config you need:
- Modding Help - Error Diagnosis
-
GitHub Successors
Sadly the scenario that the successor feature is intended to alleviate has very much become reality. The creator of Luacheck (Peter Melnichenko) passed away a couple of years ago, and ever since then the GitHub repository has been in a state of limbo. Multiple unofficial forks have come and gone, but Peter's is still the first result on Google if you search "luacheck". It isn't even possible to change the README or pin an issue to get people's attention about the fork; to this day people are still posting issues to the old repo.
And Luacheck is "the" Lua static analysis tool that pretty much everyone uses, so it's a very significant issue.
https://github.com/mpeterv/luacheck/issues/198
-
Kind of define in lua
You are probably right, but luacheck is well aware of which global variables are built-in and it has special comments, such as -- no global or --ignore in case you very want to overwrite them.
-
Is it ok to name a function for example "function self:Example() end" or is it a big mistake? And how to find (directory) location of a function?
Calling your function self is as much bad practice as calling it print. Use luacheck to avoid such mistakes.
import.nvim
-
[Notice] import.nvim is deprecated
Just a quick update, import.nvim is deprecated as of today. You can see this issue explaining it more.
-
Using LSP's in Neovim with remote projects.
Aww thanks! I go through motivation spurts lol. Right now I am in one, so I will keep working on it until I get board and either work on my other plugin import.nvim or some other waste of time project that has been or will be abandoned sitting in my poor git directory lol
-
Can I reload Neovim config without restarting it?
I do something similar in import.nvim, though I also have an issue out there for this exact issue
-
[Request] Import.nvim feature feedback
Good evening everyone! I am looking for some feedback on potential next features for import.nvim. I have created an issue on the issue board, it can be found here.
-
import.nvim now supports dependent imports
Hello neovimers! A recent merged PR has enabled import.nvim to now support "dependent" imports. What this means is you can now have several modules be imported with a single import call, and also those modules will be available in your callback so you can safely use them however you need. More details can be found in the updated Readme
-
Neovim taking a long time to start up since i switched to init.lua
Share your config so we can get a look at it. It might also be worth wrapping your module requires with a bit of timing logic to get an idea of how long each module takes. Alternatively, import.nvim does that timing for you so can you see how long each module import takes
-
Packer, how to make dependent plugins load before reading config?
Not Packer, but import.nvim (a project I made) has a current issue (and pr) discussing (and resolving) this very thing. Feel free to drop by and lemme know your thoughts :)
-
Help me reload my lua config! :)
If you are just trying to reload a specific module, import.nvim can do that for you with the :Reload command. Check out :help Reload
-
Is it a good idea to use pcalls in my neovim
I would suggest checking out the plugin import.nvim which is a require wrapper for this exact purpose
-
Is there a way to follow requires or imports for example in neovim
Checkout pcall as this is built into lua. Alternatively, I made a plugin that handles this for you import.nvim
What are some alternatives?
lua-language-server - A language server that offers Lua language support - programmed in Lua
rnoweb-nvim - A neovim plugin for rnoweb files
StyLua - An opinionated Lua code formatter
satellite.nvim - Decorate scrollbar for Neovim
LuaFormatter - Code formatter for Lua
vim-dim
luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua
marks.nvim - A better user experience for viewing and interacting with Vim marks.
NvChad - Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your neovim experience.
vim-arsync - vim plugin for async synchronisation of remote files and local files using rsync
NvChad - An attempt to make neovim cli as functional as an IDE while being very beautiful , blazing fast. [Moved to: https://github.com/NvChad/NvChad]
nvim-pasta - The yank/paste enhancement plugin for neovim.