add jsonnet support

This commit is contained in:
cbosvik 2024-04-01 22:59:52 +02:00 committed by Folke Lemaitre
parent f8268faa7c
commit 5bbe52c697

View file

@ -0,0 +1,28 @@
return {
{ "google/vim-jsonnet" },
{
"neovim/nvim-lspconfig",
opts = {
servers = {
-- Ensure mason installs the server
jsonnet_ls = {},
},
},
},
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "jsonnet" })
end
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"jsonnet-language-server",
})
end,
},
}