From 68f93fcd4a84e254de194643d272b15e81e0b41a Mon Sep 17 00:00:00 2001 From: Skladnayazebra Date: Tue, 31 Mar 2026 12:46:28 +0200 Subject: ATLASSIAN SUCKS --- nvim/lua/config/lsp.lua | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'nvim/lua/config/lsp.lua') diff --git a/nvim/lua/config/lsp.lua b/nvim/lua/config/lsp.lua index 3a5d6b6..b12b10d 100644 --- a/nvim/lua/config/lsp.lua +++ b/nvim/lua/config/lsp.lua @@ -19,16 +19,29 @@ vim.lsp.config('jsonls', { -- requires bash-language-server, shellcheck is a nice optional addition vim.lsp.enable('bashls') +-- dymanic path to bitbucket config schema +local bb_schema_path = vim.fn.stdpath("config") .. "/bitbucket-pipelines.json" + -- npm i -g yaml-language-server -vim.lsp.enable('yamlls', { +vim.lsp.enable('yamlls') +vim.lsp.config('yamlls', { settings = { yaml = { - schemas = require('schemastore').yaml.schemas(), - validate = { enable = true }, + schemas = require('schemastore').yaml.schemas { + replace = { + ['bitbucket-pipelines'] = { + description = 'Patched pipelines schema', + name = 'bitbucket-pipelines', + fileMatch = 'bitbucket-pipelines.yml', + url = 'file://' .. bb_schema_path, + } + } + }, } } }) +-- requires clang installed vim.lsp.enable('clangd') vim.lsp.enable('eslint') vim.lsp.enable('cssls') -- cgit v1.3.1