luacheck
NvChad
Our great sponsors
luacheck | NvChad | |
---|---|---|
14 | 187 | |
1,864 | 22,805 | |
- | 2.8% | |
0.0 | 8.8 | |
over 1 year ago | 3 days ago | |
Lua | Lua | |
MIT License | GNU General Public License v3.0 only |
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.
-
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.
NvChad
-
Every Neovim, Every Config, All At Once
NvChad
- Neovide – a simple, no-nonsense, cross-platform GUI for Neovim
- NvChad: Full featured IDE based on Neovim
- Enchula Mi Consola
- Pimp your CLI
-
Is there a way that I can do programming on my phone?
If you use Android device, you can try Termux , and in Termux I recommend NavChad as IDE . You can also find a lot of other useful packages .
-
How to setup Neovim for Competitive Programming in C++
git clone https://github.com/NvChad/NvChad $HOME\AppData\Local\nvim --depth 1 && nvim # if the above path doesnt work, try any of these paths : %LOCALAPPDATA%\nvim %USERPROFILE%AppDataLocal\nvim C:Users%USERNAME%AppDataLocal\nvim
-
How to get nvchad cheetsheet in custom config
line 1: you would have to copy it and remove all the nvchad keymaps and additionally reformat your keymaps to adopt this format. for example, if you copied the file in the link to lua/user/mappings.lua I believe you can just replace the first line with:
-
Problem with neovim lspconfig and mason
I'm confused as to why this is happenening as I have been able to load LunarVim and NvChad with any problems whatsoever.
-
Tools to achieve a 10x developer workflow on Windows
I would suggest to start getting into vim by first trying out popular vim keybinding plugins available on your favorite code editor and get used to those first. Then, if you want to dive deeper into the power of Neovim, try out popular configs like LazyVim, LunarVim, NvChad... Taking Neovim from a mere text editor to a full-featured IDE with features like intellisense, debugging, testing, etc... on your own takes quite a lot of work and configuration.
What are some alternatives?
lua-language-server - A language server that offers Lua language support - programmed in Lua
LunarVim - 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
StyLua - An opinionated Lua code formatter
AstroVim - AstroNvim is an aesthetic and feature-rich neovim config that is extensible and easy to use with a great set of plugins [Moved to: https://github.com/AstroNvim/AstroNvim]
LuaFormatter - Code formatter for Lua
LazyVim - Neovim config for the lazy
luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua
AstroNvim - AstroNvim is an aesthetic and feature-rich neovim config that is extensible and easy to use with a great set of plugins
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]
SpaceVim - A community-driven modular vim/neovim distribution - The ultimate vimrc
lua-enumerable - A port of ruby's Enumerable module to Lua
rust-tools.nvim - Tools for better development in rust using neovim's builtin lsp