Dotfiles_nvim/lua/toolchain/config.lua

38 lines
887 B
Lua
Raw Normal View History

2024-09-07 20:39:22 +02:00
local T = require('toolchain')
local M = {}
2024-09-08 01:50:39 +02:00
function M.setup()
2025-01-13 15:30:01 +01:00
T.add_highlighter_autoinstalls('json', 'xml', 'yaml', 'toml')
2024-09-07 20:39:22 +02:00
T.add_null_ls_module(function(null_ls)
return {
null_ls.builtins.diagnostics.spectral,
}
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)
2025-01-13 15:30:01 +01:00
T.add_plugins({
'folke/lazydev.nvim',
ft = 'lua',
opts = {
library = {},
2024-09-07 20:39:22 +02:00
},
2025-01-13 15:30:01 +01:00
}, {
'folke/neoconf.nvim',
priority = 100,
config = function()
require('neoconf').setup()
end,
})
2024-09-07 20:39:22 +02:00
end
return M