From 3aa2edc389d17fd120447a998c28f05da7d7d491 Mon Sep 17 00:00:00 2001 From: thoxy Date: Mon, 16 Oct 2023 18:08:50 +0200 Subject: [PATCH] put setup inside opts --- lua/lazyvim/plugins/extras/lang/zig.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/zig.lua b/lua/lazyvim/plugins/extras/lang/zig.lua index fc752888..45999bd6 100644 --- a/lua/lazyvim/plugins/extras/lang/zig.lua +++ b/lua/lazyvim/plugins/extras/lang/zig.lua @@ -30,16 +30,17 @@ return { "neovim/nvim-lspconfig", opts = { 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",