♻️ refactor(nvim): added logic of catppuccin to the catppuccin module itself

This commit is contained in:
Sergio Laín 2023-11-16 02:18:40 +01:00
parent b2b4006ab6
commit 5433ac6917
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 22 additions and 16 deletions

View file

@ -1,4 +1,3 @@
local macchiato = require("catppuccin.palettes").get_palette("macchiato")
return { return {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
keys = { keys = {
@ -6,15 +5,6 @@ return {
{ "]B", "<cmd>BufferLineMoveNext<cr>", desc = "Move buffer next" }, { "]B", "<cmd>BufferLineMoveNext<cr>", desc = "Move buffer next" },
}, },
opts = { opts = {
highlights = require("catppuccin.groups.integrations.bufferline").get({
styles = { "italic", "bold" },
custom = {
all = {
fill = { bg = macchiato.mantle },
background = { bg = macchiato.mantle },
},
},
}),
options = { options = {
buffer_close_icon = "", buffer_close_icon = "",
modified_icon = "", modified_icon = "",

View file

@ -1,3 +1,5 @@
local macchiato = require("catppuccin.palettes").get_palette("macchiato")
return { return {
{ {
"catppuccin/nvim", "catppuccin/nvim",
@ -68,4 +70,24 @@ return {
}, },
}, },
}, },
{
"akinsho/bufferline.nvim",
opts = {
highlights = require("catppuccin.groups.integrations.bufferline").get({
styles = { "italic", "bold" },
custom = {
all = {
fill = { bg = macchiato.mantle },
background = { bg = macchiato.mantle },
},
},
}),
},
},
{
"LazyVim/LazyVim",
opts = {
colorscheme = "catppuccin-macchiato",
},
},
} }

View file

@ -1,6 +0,0 @@
return {
"LazyVim/LazyVim",
opts = {
colorscheme = "catppuccin-macchiato",
},
}