From 6c8531b67a41f72341cee0b696728c1e8245c89c Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Mon, 2 May 2022 10:28:46 +0200 Subject: [PATCH] don't validate yaml files --- lua/setup/lspinstall.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/setup/lspinstall.lua b/lua/setup/lspinstall.lua index 9ef067e..d56732c 100644 --- a/lua/setup/lspinstall.lua +++ b/lua/setup/lspinstall.lua @@ -152,6 +152,13 @@ lsp_installer.on_server_ready(function(server) }, } end + if server.name == 'yamlls' then + opts.settings = { + yaml = { + validate = false + } + } + end -- This setup() function is exactly the same as lspconfig's setup function (:help lspconfig-quickstart) server:setup(opts)