From ef7b6ada6d91a1b2932492d78c730e4fc00cd2ea Mon Sep 17 00:00:00 2001 From: tami5 Date: Sun, 13 Mar 2022 20:11:27 +0300 Subject: feat: improve UX with vim.notify (#1763) * fix(notify): don't report request on new line * ref(notify): update message format * ref(msgs): always quote values + decrease duplication * fix(ci): undefined variables * ref(actions): temporary silent actions.__index errors * cleanup * revert: panic effort, we continue to use error for those Co-authored-by: Simon Hauser --- lua/telescope/pickers/window.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/telescope/pickers/window.lua') diff --git a/lua/telescope/pickers/window.lua b/lua/telescope/pickers/window.lua index 95b89cf..945a7e3 100644 --- a/lua/telescope/pickers/window.lua +++ b/lua/telescope/pickers/window.lua @@ -7,7 +7,7 @@ function p_window.get_window_options(picker, max_columns, max_lines) local getter = require("telescope.pickers.layout_strategies")[layout_strategy] if not getter then - error("Not a valid layout strategy: " .. layout_strategy) + error(string.format("'%s' is not a valid layout strategy", layout_strategy)) end return getter(picker, max_columns, max_lines) -- cgit v1.2.3