mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
added zsh support
This commit is contained in:
parent
d7c7548e09
commit
4597d8683e
1 changed files with 37 additions and 0 deletions
37
lua/lazyvim/plugins/extras/lang/zsh.lua
Normal file
37
lua/lazyvim/plugins/extras/lang/zsh.lua
Normal 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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue