Skip to content

Commit

Permalink
fix(bash): bashls automatically uses shellcheck and shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 1, 2024
1 parent ce626bc commit 2353882
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lua/astrocommunity/pack/bash/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ return {
"jay-babu/mason-null-ls.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "shfmt" })
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "shfmt", "shellcheck" })
if opts.handlers then opts.handlers.shfmt = function() end end
end,
},
{
Expand All @@ -48,13 +49,4 @@ return {
},
},
},
{
"mfussenegger/nvim-lint",
optional = true,
opts = {
linters_by_ft = {
sh = { "shellcheck" },
},
},
},
}

0 comments on commit 2353882

Please sign in to comment.