diff options
Diffstat (limited to 'nvim/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') |
