feat(lang): add bash support

fix(lang/bash): remove duplicate bash treesitter
This commit is contained in:
rook1e 2024-06-07 14:02:54 +08:00
parent 59495c1871
commit 26ac80e307
No known key found for this signature in database
GPG key ID: C63289D731719BC0

View file

@ -0,0 +1,32 @@
return {
recommended = function()
return LazyVim.extras.wants({
ft = "sh",
})
end,
-- LSP
{
"williamboman/mason.nvim",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, {
"bash-language-server",
"shellcheck",
"shfmt",
})
end
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
bashls = {},
},
},
},
-- Treesitter for bash is installed by default.
-- Linter(shellchecker) and formatter(shfmt) can be triggered by bashls.
}