local T = require('toolchain') local M = {} function M.setup() T.add_highlighter_autoinstalls('json', 'xml', 'yaml', 'toml') T.add_null_ls_module(function(null_ls) return { null_ls.builtins.diagnostics.spectral, --null_ls.builtins.diagnostics.vacuum --Pure Openapi linter } end) T.add_lsp_autoinstalls('jsonls', 'lemminx', 'yamlls', 'taplo') T.add_lsps(function(lspconfig, capabilities) local config = { capabilities = capabilities } lspconfig.jsonls.setup(config) lspconfig.lemminx.setup(config) lspconfig.yamlls.setup(config) lspconfig.taplo.setup(config) end) T.add_plugins({ 'folke/neoconf.nvim', priority = 10000, config = function() require('neoconf').setup() end, }, { 'folke/lazydev.nvim', dependencies = { 'folke/neoconf.nvim', }, ft = 'lua', event = 'BufEnter *.lua', config = function() require('lazydev').setup(require('neoconf').get('lazydev')) end, }) end return M