2024-06-12 10:25:28 -05:00
|
|
|
-- adapted from https://www.lazyvim.org/extras/lang/rust
|
2024-06-14 14:14:58 -05:00
|
|
|
return require("util").if_exe("zig", {
|
2024-06-12 10:25:28 -05:00
|
|
|
{
|
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
opts = function(_, opts)
|
|
|
|
opts.ensure_installed = opts.ensure_installed or {}
|
|
|
|
vim.list_extend(opts.ensure_installed, { "zig" })
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
opts = {
|
|
|
|
servers = {
|
|
|
|
zls = {
|
|
|
|
mason = false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-06-14 14:14:58 -05:00
|
|
|
})
|