@@ -70,60 +70,119 @@ return {
7070 " catppuccin/nvim" ,
7171 name = " catppuccin" ,
7272 build = " :CatppuccinCompile" ,
73- opts = {
74- transparent_background = true ,
75- integrations = {
76- cmp = true ,
77- dashboard = false ,
78- fidget = true ,
79- gitgutter = true ,
80- gitsigns = true ,
81- harpoon = true ,
82- illuminate = true ,
83- markdown = true ,
84- mason = true ,
85- mini = true ,
86- telescope = true ,
87- treesitter = true ,
88- treesitter_context = true ,
89- which_key = true ,
90- indent_blankline = {
91- enabled = true ,
92- colored_indent_levels = false ,
93- },
94- lsp_trouble = true ,
95- native_lsp = {
96- enabled = true ,
97- virtual_text = {
98- errors = { " italic" },
99- hints = { " italic" },
100- warnings = { " italic" },
101- information = { " italic" },
102- ok = { " italic" },
103- },
104- underlines = {
105- errors = { " underline" },
106- hints = { " underline" },
107- warnings = { " underline" },
108- information = { " underline" },
109- ok = { " underline" },
73+ config = function ()
74+ require (" catppuccin" ).setup ({
75+ flavour = " mocha" ,
76+ transparent_background = true ,
77+ integrations = {
78+ cmp = true ,
79+ dashboard = false ,
80+ fidget = true ,
81+ gitgutter = true ,
82+ gitsigns = true ,
83+ harpoon = true ,
84+ illuminate = true ,
85+ markdown = true ,
86+ mason = true ,
87+ mini = true ,
88+ telescope = { enabled = true },
89+ treesitter = true ,
90+ treesitter_context = true ,
91+ which_key = true ,
92+ indent_blankline = {
93+ enabled = true ,
94+ colored_indent_levels = false ,
11095 },
111- inlay_hints = {
112- background = true ,
96+ lsp_trouble = true ,
97+ native_lsp = {
98+ enabled = true ,
99+ virtual_text = {
100+ errors = { " italic" },
101+ hints = { " italic" },
102+ warnings = { " italic" },
103+ information = { " italic" },
104+ ok = { " italic" },
105+ },
106+ underlines = {
107+ errors = { " undercurl" },
108+ hints = { " undercurl" },
109+ warnings = { " undercurl" },
110+ information = { " undercurl" },
111+ ok = { " undercurl" },
112+ },
113+ inlay_hints = {
114+ background = true ,
115+ },
113116 },
117+ neotree = true ,
118+ notify = true ,
119+ noice = true ,
114120 },
115- neotree = true ,
116- notify = true ,
117- },
118- },
121+ custom_highlights = function (colors )
122+ return {
123+ -- Ensure that the background is transparent
124+ Normal = { bg = " none" },
125+ NormalFloat = { bg = colors .mantle },
126+ FloatBorder = { fg = colors .crust },
127+
128+ -- Needed this for undercurls to work
129+ DiagnosticUnderlineError = { sp = colors .red , undercurl = true },
130+ DiagnosticUnderlineWarn = { sp = colors .yellow , undercurl = true },
131+ DiagnosticUnderlineInfo = { sp = colors .sky , undercurl = true },
132+ DiagnosticUnderlineHint = { sp = colors .teal , undercurl = true },
133+
134+ -- Telescope
135+ TelescopeBorder = {
136+ fg = colors .crust ,
137+ bg = colors .crust ,
138+ },
139+ TelescopeMatching = { fg = colors .blue },
140+ TelescopeNormal = {
141+ bg = colors .crust ,
142+ },
143+ TelescopePromptBorder = {
144+ fg = colors .surface0 ,
145+ bg = colors .surface0 ,
146+ },
147+ TelescopePromptNormal = {
148+ fg = colors .text ,
149+ bg = colors .surface0 ,
150+ },
151+ TelescopePromptPrefix = {
152+ fg = colors .flamingo ,
153+ bg = colors .surface0 ,
154+ },
155+ TelescopePreviewTitle = {
156+ fg = colors .base ,
157+ bg = colors .green ,
158+ },
159+ TelescopePromptTitle = {
160+ fg = colors .base ,
161+ bg = colors .red ,
162+ },
163+ TelescopeResultsTitle = {
164+ fg = colors .mantle ,
165+ bg = colors .lavender ,
166+ },
167+ TelescopeSelection = {
168+ fg = colors .text ,
169+ bg = colors .surface0 ,
170+ style = { " bold" },
171+ },
172+ TelescopeSelectionCaret = { fg = colors .flamingo },
173+
174+ -- Neotree
175+ NeoTreeNormal = {
176+ bg = colors .crust ,
177+ },
178+ }
179+ end ,
180+ })
181+
182+ vim .cmd .colorscheme (" catppuccin" )
183+ end ,
119184 lazy = false ,
120185 priority = 1000 ,
121- config = function ()
122- -- load the colorscheme here
123- vim .cmd ([[ colorscheme catppuccin]] )
124- vim .api .nvim_set_hl (0 , " Normal" , { bg = " none" })
125- vim .api .nvim_set_hl (0 , " NormalFloat" , { bg = " none" })
126- end ,
127186 },
128187
129188 -- Add indentation guides even on blank lines
@@ -137,6 +196,7 @@ return {
137196 " Neotree" ,
138197 " txt" ,
139198 " markdown" ,
199+ " ministarter" ,
140200 },
141201 },
142202 },
0 commit comments