Something went wrong. Try again.
my lil nvim config
Something went wrong. Try again.
123456789101112131415161718return { cmd = { "yaml-language-server", "--stdio" }, filetypes = { "yaml", "yaml.docker-compose", "yaml.gitlab", "yaml.helm-values" }, root_markers = { ".git" }, settings = { -- https://github.com/redhat-developer/vscode-redhat-telemetry#how-to-disable-telemetry-reporting redhat = { telemetry = { enabled = false } }, yaml = { format = { enable = false } }, }, on_init = function(client) --- https://github.com/neovim/nvim-lspconfig/pull/4016 --- Since formatting is disabled by default if you check `client:supports_method('textDocument/formatting')` --- during `LspAttach` it will return `false`. This hack sets the capability to `true` to facilitate --- autocmd's which check this capability client.server_capabilities.documentFormattingProvider = false end,}