From 3466159b0fcc1876483f6f53587562628664d850 Mon Sep 17 00:00:00 2001 From: James Trew <66286082+jamestrew@users.noreply.github.com> Date: Thu, 28 Dec 2023 20:18:41 -0500 Subject: [PATCH] fix(builtin.colorscheme): get current colorscheme (#2837) --- lua/telescope/builtin/__internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/builtin/__internal.lua b/lua/telescope/builtin/__internal.lua index cc80a15..15e2c5e 100644 --- a/lua/telescope/builtin/__internal.lua +++ b/lua/telescope/builtin/__internal.lua @@ -959,7 +959,7 @@ end internal.colorscheme = function(opts) local before_background = vim.o.background - local before_color = vim.cmd.colorscheme() + local before_color = vim.api.nvim_exec2("colorscheme", { output = true }).output local need_restore = true local colors = opts.colors or { before_color }