customize telesscope hl groups for border/borderless styles

v2.5
siduck 3 years ago
parent 85d1dd41f0
commit 28b362e4f0

@ -1,21 +1,8 @@
local colors = require("base46").get_theme_tb "base_30" local colors = require("base46").get_theme_tb "base_30"
return { local telescope_style = require("core.utils").load_config().ui.telescope.style
TelescopeBorder = { local hlgroups = {
fg = colors.darker_black,
bg = colors.darker_black,
},
TelescopePromptBorder = {
fg = colors.black2,
bg = colors.black2,
},
TelescopePromptNormal = {
fg = colors.white,
bg = colors.black2,
},
TelescopePromptPrefix = { TelescopePromptPrefix = {
fg = colors.red, fg = colors.red,
@ -34,22 +21,32 @@ return {
bg = colors.red, bg = colors.red,
}, },
TelescopeResultsTitle = {
fg = colors.darker_black,
bg = colors.darker_black,
},
TelescopeSelection = { bg = colors.black2, fg = colors.white }, TelescopeSelection = { bg = colors.black2, fg = colors.white },
TelescopeResultsDiffAdd = { fg = colors.green },
TelescopeResultsDiffChange = { fg = colors.yellow },
TelescopeResultsDiffDelete = { fg = colors.red },
}
TelescopeResultsDiffAdd = { local styles = {
fg = colors.green, borderless = {
TelescopeBorder = { fg = colors.darker_black, bg = colors.darker_black },
TelescopePromptBorder = { fg = colors.black2, bg = colors.black2 },
TelescopePromptNormal = { fg = colors.white, bg = colors.black2 },
TelescopeResultsTitle = { fg = colors.darker_black, bg = colors.darker_black },
TelescopePromptPrefix = { fg = colors.red, bg = colors.black2 },
}, },
TelescopeResultsDiffChange = { bordered = {
fg = colors.yellow, TelescopeBorder = { fg = colors.one_bg3 },
}, TelescopePromptBorder = { fg = colors.one_bg3 },
TelescopeResultsTitle = { fg = colors.black, bg = colors.green },
TelescopeResultsDiffDelete = { TelescopePreviewTitle = { fg = colors.black, bg = colors.blue },
fg = colors.red, TelescopePromptPrefix = { fg = colors.red, bg = colors.black },
TelescopeNormal = { bg = colors.black },
TelescopePromptNormal = { bg = colors.black },
}, },
} }
local result = vim.tbl_deep_extend("force", hlgroups, styles[telescope_style])
return result

Loading…
Cancel
Save