put setup inside opts

This commit is contained in:
thoxy 2023-10-16 18:08:50 +02:00 committed by Folke Lemaitre
parent 209bf2dcbe
commit 3aa2edc389

View file

@ -30,16 +30,17 @@ return {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
opts = { opts = {
servers = { servers = {
zls = {}, zls = {
setup = {
zls = function(_, opts)
local zig_tools_opts = require("lazyvim.util").opts("zig-tools.nvim")
require("zig-tools").setup(vim.tbl_deep_extend("force", zig_tools_opts or {}, { server = opts }))
return true
end,
},
},
}, },
}, },
setup = {
zls = function(_, opts)
local zig_tools_opts = require("lazyvim.util").opts("zig-tools.nvim")
require("zig-tools").setup(vim.tbl_deep_extend("force", zig_tools_opts or {}, { server = opts }))
return true
end,
},
}, },
{ {
"nvim-neotest/neotest", "nvim-neotest/neotest",