From 84c3a18fab9e374dacd87b405195183ccfddc57e Mon Sep 17 00:00:00 2001 From: siduck Date: Sat, 4 Dec 2021 21:38:30 +0530 Subject: [PATCH] include telescope highlights for transparency --- lua/colors/highlights.lua | 11 +++++++++++ lua/plugins/configs/telescope.lua | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lua/colors/highlights.lua b/lua/colors/highlights.lua index 75e5580..0da5e41 100644 --- a/lua/colors/highlights.lua +++ b/lua/colors/highlights.lua @@ -164,11 +164,22 @@ end -- Disable some highlight in nvim tree if transparency enabled if ui.transparency then + bg("NormalFloat", "NONE") bg("NvimTreeNormal", "NONE") bg("NvimTreeNormalNC", "NONE") bg("NvimTreeStatusLineNC", "NONE") bg("NvimTreeVertSplit", "NONE") fg("NvimTreeVertSplit", grey) + + -- telescope + bg("TelescopeBorder", "NONE") + bg("TelescopePrompt", "NONE") + bg("TelescopeResults", "NONE") + bg("TelescopePromptBorder", "NONE") + bg("TelescopePromptNormal", "NONE") + bg("TelescopeNormal", "NONE") + bg("TelescopePromptPrefix", "NONE") + fg("TelescopeBorder", one_bg) end if #override ~= 0 then diff --git a/lua/plugins/configs/telescope.lua b/lua/plugins/configs/telescope.lua index c29b28d..5567de6 100644 --- a/lua/plugins/configs/telescope.lua +++ b/lua/plugins/configs/telescope.lua @@ -38,7 +38,7 @@ telescope.setup { file_sorter = require("telescope.sorters").get_fuzzy_file, file_ignore_patterns = { "node_modules" }, generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter, - path_display = { "absolute" }, + path_display = { "truncate" }, winblend = 0, border = {}, borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },