Skip to content

Shellcheck diagnostics and code-actions sources for none-ls.nvim

License

Notifications You must be signed in to change notification settings

gbprod/none-ls-shellcheck.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

none-ls-shellcheck.nvim

Shellcheck source for none-ls.nvim

Since this diagnostic is deprecated from none-ls.nvim (see this issue) because a LSP alternative is available (bashls) this repository allows to keep using shellcheck diagnostics and code-action with none-ls.nvim.

Note: This plugin is not intended to be used alone, it is a dependency of none-ls.nvim.

📦 Installation

This should be used as a dependency of none-ls.nvim.

{
  {
    "nvimtools/none-ls.nvim",
    dependencies = {
        "gbprod/none-ls-shellcheck.nvim",
    },
  },
}

Setup

Follow the steps in null-ls setup section.

local null_ls = require("null-ls")

null_ls.setup({
  sources = {
    require("none-ls-shellcheck.diagnostics"),
    require("none-ls-shellcheck.code_actions"),
    ...
  }
})

Related projects

You can search for sources via the none-ls-sources topic.