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
plenary-nvim
# Colorscheme
rose-pine
# UI
mini-icons
alpha-nvim

View file

@ -12,3 +12,5 @@ require('autocmds')
require('snacks-nvim')
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()
require('lz.n').trigger_load('mini.icons')
if vim.g.colors_name == 'rose-pine' then
require('lz.n').trigger_load('rose-pine')
end
end,
after = function()
require('bufferline').setup({
local opts = {
options = {
always_show_bufferline = true,
@ -65,7 +69,13 @@ return {
return icon, hl
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' }, {
desc = 'Fix bufferline when restoring a session',