diff options
| author | Skladnayazebra <skladnayazebra@gmail.com> | 2026-03-31 12:46:28 +0200 |
|---|---|---|
| committer | Skladnayazebra <skladnayazebra@gmail.com> | 2026-03-31 12:49:30 +0200 |
| commit | 68f93fcd4a84e254de194643d272b15e81e0b41a (patch) | |
| tree | 40cc707c663b4a5379599b156ab70d4d67f6dce4 /nvim/lua/config/lsp.lua | |
| parent | b1f940da43ea684a821d76ddd5ffec54b16565eb (diff) | |
ATLASSIAN SUCKS
Diffstat (limited to 'nvim/lua/config/lsp.lua')
| -rw-r--r-- | nvim/lua/config/lsp.lua | 19 |
1 files changed, 16 insertions, 3 deletions
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') |
