-- LSP diagnostic info config (erorrs, warnings, etc.) vim.diagnostic.config({ -- use virtual text to show diagnostic messages virtual_text = true, }) -- requires vscode-json-languageserver vim.lsp.enable('jsonls') vim.lsp.config('jsonls', { settings = { json = { schemas = require('schemastore').json.schemas { select = { 'tsconfig.json', 'package.json', 'prettierrc.json', '.eslintrc', } }, validate = { enable = true }, }, }, }) -- 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.config('yamlls', { settings = { yaml = { 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') -- requires typescript-language-server vim.lsp.enable('ts_ls')