dotfiles/.config/nvim/lua/plugins/extras/lang/bash.lua

56 lines
934 B
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"bash",
},
},
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
bashls = {},
},
},
},
{
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"bash-language-server",
"shellcheck",
},
},
},
{
"mfussenegger/nvim-lint",
opts = function(_, opts)
opts.linters_by_ft.bash = opts.linters_by_ft.bash or {}
table.insert(opts.linters_by_ft.bash, "shellcheck")
return opts
end,
},
{
"nvim-neotest/neotest",
optional = true,
dependencies = {
"rcasia/neotest-bash",
},
opts = {
adapters = {
["neotest-bash"] = {},
},
},
},
{
"luckasRanarison/nvim-devdocs",
optional = true,
opts = {
ensure_installed = {
"bash",
},
},
},
}