added zsh support

This commit is contained in:
muneebusmani 2024-06-10 16:18:31 +05:00
parent d7c7548e09
commit 4597d8683e

View file

@ -0,0 +1,37 @@
-- a workaround for getting completions in zsh scripts
return {
recommended = function()
return LazyVim.extras.wants({
ft = "zsh",
-- root = { ""},
})
end,
{
"nvim-treesitter/nvim-treesitter",
opts = { ensure_installed = { "bash" } },
},
{
"mason.nvim",
opts = { ensure_installed = { "beautysh" } },
},
{
"nvimtools/none-ls.nvim",
optional = true,
opts = function(_, opts)
local nls = require("null-ls")
opts.sources = vim.list_extend(opts.sources or {}, {
nls.builtins.diagnostics.zsh,
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
bashls = {
filetypes = { "sh", "zsh", "bash" },
},
},
},
},
}