From 6d72766f3642892aa27e4d5ec27b9574ba991df9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 3 Feb 2025 00:46:09 +0800 Subject: [PATCH] fix(flygrep): fix setup function --- bundle/flygrep.nvim/lua/flygrep/config.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bundle/flygrep.nvim/lua/flygrep/config.lua b/bundle/flygrep.nvim/lua/flygrep/config.lua index 9a5e7b71b..e6cb9a3b6 100644 --- a/bundle/flygrep.nvim/lua/flygrep/config.lua +++ b/bundle/flygrep.nvim/lua/flygrep/config.lua @@ -47,9 +47,11 @@ M.setup = function(conf) return end - M.color_templete = conf.color_templete or M.color_templete - M.timeout = conf.timeout or M.timeout + M.command = vim.tbl_deep_extend('force', {}, M.command, conf.command or {}) + M.color_templete = vim.tbl_deep_extend('force', {}, M.color_templete, conf.color_templete or {}) + M.matched_higroup = conf.matched_higroup or M.matched_higroup + M.enable_preview = conf.enable_preview end return M