From fea7f1cf15b04ec9b8dd071aa3510f693156ce59 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 24 Jun 2023 20:51:00 +0200 Subject: [PATCH] fix(config): properly deal with preset routes. Fixes #517 --- lua/noice/config/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/noice/config/init.lua b/lua/noice/config/init.lua index dfbe184..1c0e890 100644 --- a/lua/noice/config/init.lua +++ b/lua/noice/config/init.lua @@ -243,7 +243,9 @@ function M.setup(options) require("noice.config.preset").setup(options) + local routes = M.options.routes M.options = vim.tbl_deep_extend("force", M.options, options) + vim.list_extend(M.options.routes, routes) if M.options.popupmenu.kind_icons == false then M.options.popupmenu.kind_icons = {}