mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(lang): add bash support
fix(lang/bash): remove duplicate bash treesitter
This commit is contained in:
parent
59495c1871
commit
26ac80e307
1 changed files with 32 additions and 0 deletions
32
lua/lazyvim/plugins/extras/lang/bash.lua
Normal file
32
lua/lazyvim/plugins/extras/lang/bash.lua
Normal 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.
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue