From a2a880a03e9215afcaee62529508a93dada4f2a2 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Mon, 9 Mar 2026 14:08:50 +0100 Subject: [PATCH] feat: add Azure DevOps LSP (blergh) --- lsp/azure-devops.lua | 19 +++++++++++++++++++ lua/weeheavy/prefs.lua | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 lsp/azure-devops.lua diff --git a/lsp/azure-devops.lua b/lsp/azure-devops.lua new file mode 100644 index 0000000..eb88c66 --- /dev/null +++ b/lsp/azure-devops.lua @@ -0,0 +1,19 @@ +---@type vim.lsp.Config +return { + filetypes = { "yaml" }, + cmd = { "azure-pipelines-language-server", "--stdio" }, + root_markers = { "azure-pipelines.yml", "azure-pipelines" }, + settings = { + yaml = { + schemas = { + ["https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/master/service-schema.json"] = { + "/azure-pipeline*.y*l", + "/*.azure*", + "Azure-Pipelines/**/*.y*l", + "Pipelines/*.y*l", + "azure-pipelines/*.y*l", + }, + }, + }, + }, +} diff --git a/lua/weeheavy/prefs.lua b/lua/weeheavy/prefs.lua index dda8a26..d870b29 100644 --- a/lua/weeheavy/prefs.lua +++ b/lua/weeheavy/prefs.lua @@ -16,6 +16,7 @@ vim.lsp.enable({ "elixir", "json", "bash", + "azure-devops", }) -- Set highlight on search @@ -69,7 +70,8 @@ vim.opt.wrap = false vim.opt.termguicolors = true -- Themes: -vim.cmd.colorscheme("rose-pine") +-- vim.cmd.colorscheme("rose-pine") +vim.cmd.colorscheme("kanso") -- vim.opt.background = "light" -- light, dark -- Decrease update time