Skip to content

Commit f94b701

Browse files
authored
feat(bash): add zsh support (#1448)
1 parent 3bcd91a commit f94b701

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lua/astrocommunity/pack/bash/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ This plugin pack does the following:
77
- Adds `shfmt` formatter
88
- Adds `shellcheck` linter
99
- Adds `bash` debugger
10+
11+
> :warning: Also attaches to zsh files with experimental support.

lua/astrocommunity/pack/bash/init.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
return {
2+
{
3+
"AstroNvim/astrolsp",
4+
opts = {
5+
config = {
6+
bashls = {
7+
filetypes = { "sh", "bash", "zsh" },
8+
},
9+
},
10+
},
11+
},
212
{
313
"nvim-treesitter/nvim-treesitter",
414
optional = true,
@@ -46,6 +56,7 @@ return {
4656
opts = {
4757
formatters_by_ft = {
4858
sh = { "shfmt", "shellcheck" },
59+
zsh = { "shfmt", "shellcheck" },
4960
},
5061
},
5162
},
@@ -55,6 +66,7 @@ return {
5566
opts = {
5667
linters_by_ft = {
5768
sh = { "shellcheck" },
69+
zsh = { "shellcheck" },
5870
},
5971
},
6072
},

0 commit comments

Comments
 (0)