From b778694cc714d3f004f4bb1c86a99575ab583ce6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Mon, 15 Jan 2024 01:01:56 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20ux(nvim):=20telescope=20nvchad?= =?UTF-8?q?=20style=20and=20floaterm=20custom=20highlight=20colors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extras/ui/colorschemes/catppuccin.lua | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/ui/colorschemes/catppuccin.lua b/.config/nvim/lua/plugins/extras/ui/colorschemes/catppuccin.lua index 2e15b4ce..da783d85 100644 --- a/.config/nvim/lua/plugins/extras/ui/colorschemes/catppuccin.lua +++ b/.config/nvim/lua/plugins/extras/ui/colorschemes/catppuccin.lua @@ -1,4 +1,4 @@ -local macchiato = require("catppuccin.palettes").get_palette("macchiato") +local palette = require("catppuccin.palettes").get_palette("macchiato") -- Import your favorite catppuccin colors return { { @@ -14,6 +14,23 @@ return { dark = "macchiato", }, term_colors = true, + custom_highlights = function() + return { + FloatermBorder = { fg = palette.base }, + TelescopeMatching = { fg = palette.blue }, + TelescopeSelection = { fg = palette.text, bg = palette.surface0, bold = true }, + TelescopePromptPrefix = { bg = palette.surface0 }, + TelescopePromptNormal = { bg = palette.surface0 }, + TelescopeResultsNormal = { bg = palette.mantle }, + TelescopePreviewNormal = { bg = palette.mantle }, + TelescopePromptBorder = { bg = palette.surface0, fg = palette.surface0 }, + TelescopeResultsBorder = { bg = palette.mantle, fg = palette.mantle }, + TelescopePreviewBorder = { bg = palette.mantle, fg = palette.mantle }, + TelescopePromptTitle = { bg = palette.red, fg = palette.mantle }, + TelescopeResultsTitle = { fg = palette.mantle }, + TelescopePreviewTitle = { bg = palette.green, fg = palette.mantle }, + } + end, integrations = { alpha = true, cmp = true, @@ -71,7 +88,6 @@ return { semantic_tokens = true, telescope = { enabled = true, - style = "nvchad", }, symbols_outline = false, treesitter = true, @@ -87,8 +103,8 @@ return { styles = { "italic", "bold" }, custom = { all = { - fill = { bg = macchiato.mantle }, - background = { bg = macchiato.mantle }, + fill = { bg = palette.mantle }, + background = { bg = palette.mantle }, }, }, }),