Something went wrong. Try again.
My simple neovim config
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142---@brief--- https://github.com/redhat-developer/yaml-language-server
---@type vim.lsp.Configreturn { cmd = function(dispatchers, config) local cmd = "yaml-language-server" if (config or {}).root_dir then local local_cmd = vim.fs.joinpath(config.root_dir, "node_modules", ".bin", cmd) if vim.fn.executable(local_cmd) == 1 then cmd = local_cmd end end return vim.lsp.rpc.start({ cmd, "--stdio" }, dispatchers) end, filetypes = { "yaml", "yaml.docker-compose", "yaml.gitlab", "yaml.helm-values" }, root_markers = { ".git" }, settings = { redhat = { telemetry = { enabled = false, }, }, yaml = { format = { enable = true, }, schemas = { ["https://directory.omsf.io/schema.json"] = { "/software/*", "/workflows/*", "/software/**/*", "/workflows/**/*", }, }, }, }, on_init = function(client) client.server_capabilities.documentFormattingProvider = true end,}