null-ls.nvim VS StyLua

Compare null-ls.nvim vs StyLua and see what are their differences.

null-ls.nvim

Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua. (by jose-elias-alvarez)
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
null-ls.nvim StyLua
165 12
3,554 1,693
- 4.5%
0.0 8.5
over 1 year ago 12 days ago
Lua Rust
GNU General Public License v3.0 or later Mozilla Public License 2.0
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.

null-ls.nvim

Posts with mentions or reviews of null-ls.nvim. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-18.
  • [SOLVED] Vue 3 + TypeScript + Inlay Hint support in NeoVim
    6 projects | dev.to | 18 Nov 2024
    I'd almost given up on finding "the right" solution. Everywhere I looked, others had "solved" the issue in different ways: they were using the vtsls TypeScript LSP wrapper instead of ts_ls, or they were using coc.nvim, or the now-archived null-ls.nvim. But nowhere could I simply find a reliable configuration for a Vue language server configured natively in NeoVim.
  • cpp setting problem
    4 projects | /r/neovim | 6 Dec 2023
  • Being a bash developer in the 21st century
    4 projects | news.ycombinator.com | 22 Sep 2023
    you can use nvim then, it has shellcheck for diagnostics and formatting, like in vscode :)

    here the link to the config: https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main...

  • Linting/formatting and LSP
    1 project | /r/neovim | 8 Sep 2023
    I use a lot of different languages generally and I'm running into issues around formatting. Is there any standard way to use LSP formatting by default and otherwise fallback to specific linter/formatting programs? I believe null-ls is the normal way of dealing with this, but since it's been archived, I'd rather not rely on it.
  • How to setup efm-langserver for pint formatter?
    3 projects | /r/neovim | 13 Jul 2023
    I've been using pint for formatting php files with null-ls.nvim. Few days ago null-ls.nvim has announced that the plugin will be archived in few months so I started migrating all my formatters and linter from null-ls to efm-langserver. I got other things such as prettier, black, isort, mypy, etc. working but can't get pint to work with php files: If I run pint via efm-langserver, everything is deleted from the buffer, and the saved file is formatted separately. How do I setup efm-langserver correctly to work with pint? Below is my config.yml for pint currently. yaml tools: pint: &pint format-command: "pint --no-interaction --quiet ${INPUT}" format-stdin: false languages: php: - <<: *pint Thank you.
  • Archiving Null-Ls
    1 project | news.ycombinator.com | 10 Jul 2023
  • null-ls will be archived
    1 project | /r/ThePrimeagenReact | 10 Jul 2023
    14 projects | /r/neovim | 9 Jul 2023
  • Why is nobody using CoC anymore?
    3 projects | /r/neovim | 3 Jul 2023
    Because null-ls.nvim & mason.nvim together do everything I wanted CoC for
  • Your favourite Neovim plugins?
    42 projects | /r/neovim | 21 Jun 2023

StyLua

Posts with mentions or reviews of StyLua. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-01-12.
  • Polyglot: Lua (Part 0)
    5 projects | dev.to | 12 Jan 2025
    Lua supports most of this primarily through community packages. luarocks is the Lua package manager. Lua does not ship with a unit testing framework by default, but the community seems to have selected luaunit as the defacto testing library. LSP and linting support is provided through the lua-language-server and code formatting is handled through stylua. However, I can't find tooling similar to Python's bandit to perform security audits. I believe this to be an open area of Lua library development.
  • question about plugins
    2 projects | /r/neovim | 4 Oct 2022
    Use and enforce a style with StyLua) or LuaFormatte and neovim can autoformat for ya.
  • sumneko_lua not respecting project's stylua.toml
    6 projects | /r/neovim | 29 Aug 2022
    stylua.toml is the config file of Stylua not of sumneko-lua
  • StyLua now supports collapsing simple statements
    4 projects | /r/neovim | 7 Jul 2022
    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
    6 projects | /r/neovim | 18 Jun 2022
    Check out StyLua if you want a code formatter.
  • luaCheck and class definition
    1 project | /r/lua | 6 Jan 2022
    Here is the instruction how to install and config.
  • Cannot run executables with Alpine and Busybox images
    4 projects | /r/docker | 17 Oct 2021
    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"
    2 projects | /r/neovim | 5 Oct 2021
    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
    2 projects | /r/vim | 12 Aug 2021
    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 ?
    2 projects | /r/neovim | 29 Jul 2021
    Have a look at https://github.com/JohnnyMorganz/StyLua together with https://github.com/jose-elias-alvarez/null-ls.nvim

What are some alternatives?

When comparing null-ls.nvim and StyLua you can also consider the following projects:

lsp-format.nvim - A wrapper around Neovims native LSP formatting.

LuaFormatter - Code formatter for Lua

lsp-zero.nvim - A starting point to setup some lsp related features in neovim.

luacheck - A tool for linting and static analysis of Lua code.

nvim-lint - An asynchronous linter plugin for Neovim complementary to the built-in Language Server Protocol support.

selene - A blazing-fast modern Lua linter written in Rust

nvim-lspconfig - Quickstart configs for Nvim LSP

tidy-viewer - 📺(tv) Tidy Viewer is a cross-platform CLI csv pretty printer that uses column styling to maximize viewer enjoyment.

formatter.nvim

vscode-lua-format - Reformats your Lua source code

volar - âš¡ Explore high-performance tooling for Vue [Moved to: https://github.com/vuejs/language-tools]

lua-language-server - A language server that offers Lua language support - programmed in Lua

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you know that Lua is
the 18th most popular programming language
based on number of references?