🗑️ remove(nvim): yaml-extended extra

This commit is contained in:
Sergio Laín 2025-03-14 01:56:47 +01:00
parent 2737a9abca
commit 72d510bd77
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438
2 changed files with 0 additions and 35 deletions

View file

@ -1,9 +1,6 @@
return {
{ import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "plugins.extras.lang.json-extended" },
{
"williamboman/mason.nvim",
},
{
"neovim/nvim-lspconfig",
opts = {

View file

@ -1,32 +0,0 @@
return {
{ import = "lazyvim.plugins.extras.lang.yaml" },
{
"someone-stole-my-name/yaml-companion.nvim",
ft = { "yaml" },
opts = {},
config = function(_, opts)
local cfg = require("yaml-companion").setup(opts)
require("lspconfig")["yamlls"].setup(cfg)
LazyVim.on_load("telescope.nvim", function()
require("telescope").load_extension("yaml_schema")
end)
end,
keys = {
{ "<leader>cy", "<cmd>Telescope yaml_schema<cr>", desc = "YAML Schema" },
},
},
{
"nvim-lualine/lualine.nvim",
optional = true,
opts = function(_, opts)
local function yaml_schema()
local schema = require("yaml-companion").get_buf_schema(0)
if schema.result[1].name == "none" then
return ""
end
return schema.result[1].name
end
table.insert(opts.sections.lualine_x, 1, yaml_schema)
end,
},
}