From 6e96a310c5b4bbe40e6c530b7623ee24202e1f8c Mon Sep 17 00:00:00 2001 From: Mike <10135646+mikesmithgh@users.noreply.github.com> Date: Sat, 9 Mar 2024 21:40:28 -0500 Subject: [PATCH] fix: no longer overwriting config name in error (#206) --- lua/kitty-scrollback/launch.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/kitty-scrollback/launch.lua b/lua/kitty-scrollback/launch.lua index 6c3b9477..88a7e5ab 100644 --- a/lua/kitty-scrollback/launch.lua +++ b/lua/kitty-scrollback/launch.lua @@ -253,8 +253,13 @@ M.setup = function(kitty_data_str) local global_opts = config_to_opts(config_source.configs[1]) local user_config = config_source.configs[config_name] if not user_config and not config_name:match('^ksb_builtin_.*') then + local orig_config_name = config_name vim.defer_fn(function() - vim.notify('No configuration found with the name ' .. config_name, vim.log.levels.ERROR, {}) + vim.notify( + 'kitty-scrollback.nvim: no configuration found with the name "' .. orig_config_name .. '"', + vim.log.levels.ERROR, + {} + ) end, 1000) config_name = 'ksb_builtin_get_text_all' user_config = config_source.configs[config_name]