4 "b0o/SchemaStore.nvim",
6 version = false, -- last release is way too old
9 -- correctly setup lspconfig
11 "neovim/nvim-lspconfig",
13 -- make sure mason installs the server
16 -- Have to add this for yamlls to understand that we support line folding
20 dynamicRegistration = false,
21 lineFoldingOnly = true,
25 -- lazy-load schemastore when needed
26 on_new_config = function(new_config)
27 new_config.settings.yaml.schemas = vim.tbl_deep_extend(
29 new_config.settings.yaml.schemas or {},
30 require("schemastore").yaml.schemas()
34 redhat = { telemetry = { enabled = false } },
42 -- Must disable built-in schemaStore support to use
43 -- schemas from SchemaStore.nvim plugin
45 -- Avoid TypeError: Cannot read properties of undefined (reading 'length')
54 -- Neovim < 0.10 does not have dynamic registration for formatting
55 if vim.fn.has("nvim-0.10") == 0 then
56 rmz.lsp.on_attach(function(client, _)
57 client.server_capabilities.documentFormattingProvider = true