mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-13 21:53:09 +00:00
feat(nvim): switch to rose pine
Signed-off-by: Ismo Vuorinen <ismo@ivuorinen.net>
This commit is contained in:
@@ -1,7 +1,22 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
'rmehri01/onenord.nvim',
|
'rose-pine/neovim',
|
||||||
opts = {},
|
name = 'rose-pine',
|
||||||
|
opts = {
|
||||||
|
dim_inactive_windows = false,
|
||||||
|
extend_background_behind_borders = true,
|
||||||
|
styles = {
|
||||||
|
bold = true,
|
||||||
|
italic = true,
|
||||||
|
transparency = true,
|
||||||
|
},
|
||||||
|
enable = {
|
||||||
|
terminal = true,
|
||||||
|
legacy_highlights = true, -- Improve compatibility for previous versions of Neovim
|
||||||
|
migrations = true, -- Handle deprecated options automatically
|
||||||
|
},
|
||||||
|
},
|
||||||
|
config = function() vim.cmd 'colorscheme rose-pine' end,
|
||||||
},
|
},
|
||||||
-- Automatic dark mode
|
-- Automatic dark mode
|
||||||
-- https://github.com/f-person/auto-dark-mode.nvim
|
-- https://github.com/f-person/auto-dark-mode.nvim
|
||||||
@@ -12,10 +27,12 @@ return {
|
|||||||
set_dark_mode = function()
|
set_dark_mode = function()
|
||||||
vim.api.nvim_set_option_value('background', 'dark', {})
|
vim.api.nvim_set_option_value('background', 'dark', {})
|
||||||
-- vim.cmd.colorscheme(vim.g.colors_variant_dark)
|
-- vim.cmd.colorscheme(vim.g.colors_variant_dark)
|
||||||
|
vim.cmd 'colorscheme rose-pine'
|
||||||
end,
|
end,
|
||||||
set_light_mode = function()
|
set_light_mode = function()
|
||||||
vim.api.nvim_set_option_value('background', 'light', {})
|
vim.api.nvim_set_option_value('background', 'light', {})
|
||||||
-- vim.cmd.colorscheme(vim.g.colors_variant_light)
|
-- vim.cmd.colorscheme(vim.g.colors_variant_light)
|
||||||
|
vim.cmd 'colorscheme rose-pine-dawn'
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user