summaryrefslogtreecommitdiff
path: root/.config/nvim/lsp/yamlls.lua
blob: 1dc4711425677908ef7749fd7d3fff24c4520bc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- https://github.com/redhat-developer/yaml-language-server

return {
    cmd = { 'yaml-language-server', '--stdio' },
    filetypes = { 'yaml', 'yaml.docker-compose', 'yaml.gitlab' },
    root_markers = { '.git' },
    settings = {
        redhat = { telemetry = { enabled = false } },
    },
    -- Have to add this for yamlls to understand that we support line folding
    capabilities = {
        textDocument = {
            foldingRange = {
                dynamicRegistration = false,
                lineFoldingOnly = true,
            },
        },
    },
}