feat: rose-pine
This commit is contained in:
parent
45793e10ff
commit
58af96db82
5 changed files with 39 additions and 2 deletions
|
@ -36,6 +36,9 @@ with final.pkgs.lib; let
|
|||
# Util
|
||||
plenary-nvim
|
||||
|
||||
# Colorscheme
|
||||
rose-pine
|
||||
|
||||
# UI
|
||||
mini-icons
|
||||
alpha-nvim
|
||||
|
|
|
@ -12,3 +12,5 @@ require('autocmds')
|
|||
require('snacks-nvim')
|
||||
|
||||
require('lz.n').load('plugins')
|
||||
|
||||
vim.cmd('colorscheme rose-pine')
|
||||
|
|
5
nvim/lua/plugins/colorscheme/init.lua
Normal file
5
nvim/lua/plugins/colorscheme/init.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
local req = require('lib.marleyvim').localRequire('plugins.colorscheme')
|
||||
|
||||
return {
|
||||
req('rose-pine'),
|
||||
}
|
17
nvim/lua/plugins/colorscheme/rose-pine.lua
Normal file
17
nvim/lua/plugins/colorscheme/rose-pine.lua
Normal 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,
|
||||
}
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue