Skip to content
Discussion options

You must be logged in to vote

Hmmm, I am not actually sure what happens when null-ls.register is called for the same exact source. mason-null-ls will attempt to re-register though. I just don't know how null-ls handles that. However, I recommend you use either null-ls or mason-null-ls to set up and not both.

require("null-ls").setup()
require("mason-null-ls").setup(
    {
        ensure_installed = require("core.settings").null_ls,
        automatic_setup = true,
    }
)

require("mason-null-ls").setup_handlers(
    {
        shellcheck = function()
            null_ls.register(null_ls.builtins.diagnostics.shellcheck.with({diagnostics_format = "#{m} [#(c)]"}))
        end,
    }
)
  1. Yes, it will setup everything availa…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@charliie-dev
Comment options

@jay-babu
Comment options

Answer selected by charliie-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants