1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-09-19 22:39:08 +00:00

[neovim] Replace yaml-companion with schemastore.nvim

This commit is contained in:
2025-09-19 19:23:18 +02:00
parent d090709d1c
commit 61a1cd6430
7 changed files with 42 additions and 30 deletions

View File

@@ -13,3 +13,7 @@ end, {})
vim.api.nvim_create_user_command("RemoveTrailingSpaces", function()
vim.cmd("% s/\\s\\+$//e")
end, {})
vim.api.nvim_create_user_command("SetSchema", function()
require("schema-companion").select_schema()
end, {})

View File

@@ -178,27 +178,9 @@ require("lazy").setup({
-- YAML
{
"someone-stole-my-name/yaml-companion.nvim",
ft = { "yaml" },
opts = {
lspconfig = {
settings = {
redhat = {
telemetry = {
enabled = false,
},
},
-- yaml = {
-- schemas = {
-- ["https://custom/github-workflow.json"] = "/.github/workflows/*",
-- },
-- },
},
},
},
config = function(_, opts)
local cfg = require("yaml-companion").setup(opts)
require("lspconfig")["yamlls"].setup(cfg)
"cenk1cenk2/schema-companion.nvim",
config = function()
require("schema-companion").setup({})
end,
},