dotfiles/.config/nvim/lua/plugins/yaml.lua

25 lines
733 B
Lua

return {
{
"someone-stole-my-name/yaml-companion.nvim",
dependencies = {
{ "neovim/nvim-lspconfig" },
{ "nvim-lua/plenary.nvim" },
{ "nvim-telescope/telescope.nvim" },
},
config = function()
require("yaml-companion").setup()
require("telescope").load_extension("yaml_schema")
local cfg = require("yaml-companion").setup({
-- Add any options here, or leave empty to use the default settings
-- Additional schemas available in Telescope picker
schemas = {
{
name = "Kubernetes 1.25.9",
uri = "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.25.9-standalone-strict/all.json",
},
},
})
require("lspconfig")["yamlls"].setup(cfg)
end,
},
}