inspect.lua
luacheck
Our great sponsors
inspect.lua | luacheck | |
---|---|---|
3 | 5 | |
1,308 | 326 | |
- | 3.4% | |
0.0 | 4.6 | |
8 months ago | 19 days 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.
inspect.lua
-
What love packages/libraries do you guys currently use and consider essential for every project you guys made?
inspect and strong
-
Losing my mind with formatting
I've used inspect.lua to inspect the client table and I can see valid-looking formatCommand settings (using the exact efm folder that u/lukas-reineke uses)
-
Lua's Lack of “Batteries”
For more complex string matching tasks that the built-in patterns cannot handle, LPeg is a good choice. It's more powerful than regexes while also being easy to use. I also wouldn't expect something like PCRE to ever be included in the Lua standard library. PCRE by itself would already be larger than the rest of the Lua interpreter + standard library.
By the way, for formatting Lua tables I like using inspect[1]. (It's not part of the standard library but oh well, that's the whole topic of today's discussion).
https://github.com/kikito/inspect.lua
luacheck
-
strict.lua
Luacheck is now maintained by lunarmodules.
-
UltiSnips to LuaSnip converter
I first started by reading some tutorials but most of those used parser combinators. For me, parser combinators always caused some issues sooner or later (at least in Lua when trying to parse recursive / nested nodes). An example project that uses this technique is vim-vsnip: https://github.com/hrsh7th/vim-vsnip/blob/master/autoload/vsnip/snippet/parser.vim. Later, I found out that Luacheck uses a different approach which I liked better: https://github.com/lunarmodules/luacheck/blob/master/src/luacheck/parser.lua. That's the project that helped me the most while writing my own parsers for different snippet engines.
-
What love packages/libraries do you guys currently use and consider essential for every project you guys made?
I'm just a contributor to Gabe, but I use luacheck in my other projects. Install it (with hererocks+luarocks on Win and luarocks elsewhere), set it up in your editor, and you'll get warnings about typos and other potential bugs. luacheckrc lets you configure it: turn off warnings you don't care about, customize it for different files.
-
Local function question, clarification.
Use luacheck to find all global and unused variables in your project.
-
Pure Python Nvim Config
I’m not really really sure what exactly you’re relying on that is so specific to Python, but Lu’s appears to have a static analysis linter. https://github.com/luarocks/luacheck
What are some alternatives?
gravity - Gravity Programming Language
snippet-converter.nvim - Bundle snippets from multiple sources and convert them to your format of choice.
luaforwindows - Lua for Windows is a 'batteries included environment' for the Lua scripting language on Windows. NOTICE: Looking for maintainer.
luacheck - A tool for linting and static analysis of Lua code.
formatter.nvim
love-shaderscan - better iteration with shaders in love2d
Penlight - A set of pure Lua libraries focusing on input data handling (such as reading configuration files), functional programming (such as map, reduce, placeholder expressions,etc), and OS path management. Much of the functionality is inspired by the Python standard libraries.
forechan - Go style CSP for Python
tl - The compiler for Teal, a typed dialect of Lua
kok-snippets
love-parallax - A utility library for LÖVE that adds parallax scrolling to your camera.
strong - A Lua library that makes your strings stronger!