StyLua
mini.nvim
StyLua | mini.nvim | |
---|---|---|
11 | 146 | |
1,384 | 3,899 | |
- | - | |
8.6 | 9.6 | |
about 1 month ago | 3 days ago | |
Rust | Lua | |
Mozilla Public License 2.0 | 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.
StyLua
-
question about plugins
Use and enforce a style with StyLua) or LuaFormatte and neovim can autoformat for ya.
-
sumneko_lua not respecting project's stylua.toml
stylua.toml is the config file of Stylua not of sumneko-lua
-
StyLua now supports collapsing simple statements
Starting from version 0.14.0, StyLua (the Lua code formatter in Neovim world) implements option collapse_simple_statement. From release notes:
-
Writing a neovim plugin. Please send criticisms to make the code better
Check out StyLua if you want a code formatter.
-
luaCheck and class definition
Here is the instruction how to install and config.
-
Cannot run executables with Alpine and Busybox images
RUN wget -O stylua-0.11.0-linux.zip https://github.com/JohnnyMorganz/StyLua/releases/download/v0.11.0/stylua-0.11.0-linux.zip && \ unzip stylua-0.11.0-linux.zip && \ rm stylua-0.11.0-linux.zip && \ chmod +x stylua
-
Difference between require("foo") and require"foo"
If your function call has only one argument and it happens to be a literal string or a table, then you might want to eliminate the parenthesis. Use whatever style you prefer, the later is useful for some DSLs. Let stylua auto format it anyway.
-
Lua Indentation Woes
Have you tried any external programs to format your code instead? That's what I usually do. Just set 'formatprg', and use gq to format the code. With a quick search I found LuaFormatter, and StyLua, but I can't say if they format the code the way you want. In my experience, external code formaters will do a better job, and they have more options to tweak as well.
-
[question] Where can i find the formatter tool for lua ?
Have a look at https://github.com/JohnnyMorganz/StyLua together with https://github.com/jose-elias-alvarez/null-ls.nvim
-
lua-format : how to keep equals signs aligned (like EasyAlign)
I personally use https://github.com/JohnnyMorganz/StyLua and I am seeing it a lot in some popular projects like telescope.nvim, nvim-lspconfig and ther is also a PR to include it into neovim itself to format the lua files.
mini.nvim
- FLaNK AI Weekly 18 March 2024
-
Alternative to vim-textmanip plugin? (move selected blocks of text)
This is essentially a tagline of mini.move.
-
Refactor files and update import paths
Just as the others suggested, oil.nvim solves this outta the box. I freaking love it (here my config in case ya need it). Apparently also mini.files handles this by default
-
Backwards inner/outer motions?
You mean backwards seeking text objects? You can get those with mini.ai https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-ai.md
-
mini.nvim - release 0.10.0 (files, clue, operators, and minor updates)
I would like to offer you to join me in saying late greetings to this autumn with a release of mini.nvim version 0.10.0. It is mostly about introducing three (quite feature full, dare I say) modules and minor updates of existing ones.
-
Shoutouts to u/echasnovski
Last night I cleaned up all the dead code in my config and realised that mini.nvim has to be the single best plugin that I've used. I have a couple of other favourites but this collection has been so consistently good that I wanted to give some thanks to the juggernaut that is u/echasnovski! Thanks for all the work you plugin authors and core maintainers put in to make this editor what it is <3
-
Looking for good tutorials for learning to use neovim as an IDE.
For example: I spent a lot of time configuring file tree plugins to have the same sorting as VS Code, tweaking their icons, etc. But then I realized I barely used the file explorer at all, and now I'm super happy with the minimal approach of mini.files. I had similar experiences with other plugins that were just adding "fluff" instead of the functionality I was looking for.
- F/f/T/t highlight plugin?
-
mini.files updates - file preview, prefix customization, change target window, and more
Around two weeks ago I've announced the release of mini.files - a file explorer module of mini.nvim with column view navigation and "edit text to manipulate file system" design. This resulted into a great feedback from the community, much of which turned into new features.
-
New plugin: Notebook Navigator - Execute and manipulate code cells a la VSCode
A mini.ai textobject specification that you can use standalone
What are some alternatives?
null-ls.nvim - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
surround.nvim - A surround text object plugin for neovim written in lua. (Fork from blackCauldron7/surround.nvim)
LuaFormatter - Code formatter for Lua
peek.nvim - Markdown preview plugin for Neovim
vscode-lua-format - Reformats your Lua source code
specs.nvim - 👓 A fast and lightweight Neovim lua plugin to keep an eye on where your cursor has jumped.
selene - A blazing-fast modern Lua linter written in Rust
leap.nvim - Neovim's answer to the mouse 🦘
luacheck - A tool for linting and static analysis of Lua code.
lsp_lines.nvim - Mirror of https://git.sr.ht/~whynothugo/lsp_lines.nvim
lua-style-guide - Lua Style Guide, as used by LuaRocks
persistence.nvim - 💾 Simple session management for Neovim