feat: rose-pine

This commit is contained in:
punkfairie 2024-11-30 11:31:11 -08:00
parent 45793e10ff
commit 58af96db82
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
5 changed files with 39 additions and 2 deletions

View file

@ -36,6 +36,9 @@ with final.pkgs.lib; let
# Util # Util
plenary-nvim plenary-nvim
# Colorscheme
rose-pine
# UI # UI
mini-icons mini-icons
alpha-nvim alpha-nvim

View file

@ -12,3 +12,5 @@ require('autocmds')
require('snacks-nvim') require('snacks-nvim')
require('lz.n').load('plugins') require('lz.n').load('plugins')
vim.cmd('colorscheme rose-pine')

View file

@ -0,0 +1,5 @@
local req = require('lib.marleyvim').localRequire('plugins.colorscheme')
return {
req('rose-pine'),
}

View file

@ -0,0 +1,17 @@
return {
'rose-pine',
colorscheme = {
'rose-pine',
'rose-pine-main',
'rose-pine-moon',
'rose-pine-dawn',
},
after = function()
require('rose-pine').setup({
variant = 'main',
})
-- Reload the colorscheme once opts are set.
vim.cmd('colorscheme rose-pine')
end,
}

View file

@ -27,9 +27,13 @@ return {
}, },
before = function() before = function()
require('lz.n').trigger_load('mini.icons') require('lz.n').trigger_load('mini.icons')
if vim.g.colors_name == 'rose-pine' then
require('lz.n').trigger_load('rose-pine')
end
end, end,
after = function() after = function()
require('bufferline').setup({ local opts = {
options = { options = {
always_show_bufferline = true, always_show_bufferline = true,
@ -65,7 +69,13 @@ return {
return icon, hl return icon, hl
end, end,
}, },
}) }
if vim.g.colors_name == 'rose-pine' then
opts.highlights = require('rose-pine.plugins.bufferline')
end
require('bufferline').setup(opts)
vim.api.nvim_create_autocmd({ 'BufAdd', 'BufDelete' }, { vim.api.nvim_create_autocmd({ 'BufAdd', 'BufDelete' }, {
desc = 'Fix bufferline when restoring a session', desc = 'Fix bufferline when restoring a session',