From 28649d79070c1581b358ba61819b4aa91b65e75f Mon Sep 17 00:00:00 2001 From: FaultyBranches Date: Thu, 4 Jun 2026 18:29:06 -0500 Subject: [PATCH] fix: Actually fixing the yaml-companion setup. Testing needs to continue with verifying schemaStore will work from fresh install. --- nvim/after/lsp/yamlls.lua | 20 ++++++-------------- nvim/lua/plugins/yaml-companion.lua | 7 +------ 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/nvim/after/lsp/yamlls.lua b/nvim/after/lsp/yamlls.lua index e386a9a..12b77be 100644 --- a/nvim/after/lsp/yamlls.lua +++ b/nvim/after/lsp/yamlls.lua @@ -1,19 +1,7 @@ return { settings = { - redhat = { - telemetry = { - enabled = false - } - }, + redhat = { telemetry = { enabled = false } }, yaml = { - validate = true, - schemaStore = { - enable = true - }, - format = { - enable = true, - singleQuote = true - }, customTags = { "!fn", "!And", @@ -33,7 +21,11 @@ return { "!Select", "!Split", "!Join sequence" - } + }, + format = { enable = true, singleQuote = true }, + hover = true, + schemaStore = { enable = true }, + validate = true, } } } diff --git a/nvim/lua/plugins/yaml-companion.lua b/nvim/lua/plugins/yaml-companion.lua index c9b85f5..625d101 100644 --- a/nvim/lua/plugins/yaml-companion.lua +++ b/nvim/lua/plugins/yaml-companion.lua @@ -2,12 +2,7 @@ vim.pack.add({ 'https://github.com/mosheavni/yaml-companion.nvim' }) -local cfg = require('yaml-companion').setup { - builtin_matchers = { - kubernetes = { enabled = true }, - cloud_init = { enabled = true } - } -} +local cfg = require('yaml-companion').setup() vim.lsp.config('yamlls', cfg) vim.lsp.enable('yamlls')