feat(nvim): use azure pipelines ls for azure pipelines

This commit is contained in:
Price Hiller 2023-04-06 23:24:27 -05:00
parent 21b1849b9b
commit 8c3aaca883
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -197,21 +197,7 @@ lspconfig.yamlls.setup({
}, },
}, },
yaml = { yaml = {
schemas = require("schemastore").yaml.schemas({ schemas = require("schemastore").yaml.schemas({}),
replace = {
["Azure Pipelines"] = {
description = "Azure Pipelines override",
fileMatch = {
"/azure-pipeline*.y*l",
"/*.azure*",
"Azure-Pipelines/**/*.y*l",
"Pipelines/*.y*l",
},
name = "Azure Pipelines",
url = "https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/master/service-schema.json"
},
},
}),
}, },
}, },
capabilities = lsp_capabilities, capabilities = lsp_capabilities,
@ -259,6 +245,36 @@ lspconfig.powershell_es.setup({
on_attach = on_attach, on_attach = on_attach,
}) })
lspconfig.azure_pipelines_ls.setup({
cmd = { lsp_server_bin_dir .. "azure-pipelines-language-server", "--stdio" },
settings = {
redhat = {
telemetry = {
enabled = false,
},
},
yaml = {
schemas = require("schemastore").yaml.schemas({
replace = {
["Azure Pipelines"] = {
description = "Azure Pipelines override",
fileMatch = {
"/azure-pipeline*.y*l",
"/*.azure*",
"Azure-Pipelines/**/*.y*l",
"Pipelines/*.y*l",
},
name = "Azure Pipelines",
url = "https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/master/service-schema.json",
},
},
}),
},
},
capabilities = lsp_capabilities,
on_attach = on_attach,
})
local path = vim.fn.stdpath("config") .. "/spell/en.utf-8.add" local path = vim.fn.stdpath("config") .. "/spell/en.utf-8.add"
local words = {} local words = {}