feat(nvim): use azure pipelines ls for azure pipelines
This commit is contained in:
parent
21b1849b9b
commit
8c3aaca883
@ -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 = {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user