Skip to content

Commit

Permalink
fix: no longer overwriting config name in error (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmithgh committed Mar 10, 2024
1 parent 07fc3a2 commit 6e96a31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/kitty-scrollback/launch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6e96a31

Please sign in to comment.