dotfiles/home/private_dot_config/nvim/lua/plugins/language/zig.lua

25 lines
456 B
Lua
Raw Normal View History

2024-06-13 13:22:15 -05:00
if not vim.fn.executable("zig") then
return
end
-- adapted from https://www.lazyvim.org/extras/lang/rust
return {
{
"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,
},
},
},
},
}