From e9664ee278d7b0ac3ee0eb1295f5f34cdb94f5c2 Mon Sep 17 00:00:00 2001 From: fiplox Date: Mon, 6 Feb 2023 09:58:08 +0100 Subject: [PATCH] =?UTF-8?q?feature:=20back=20to=20black,=20use=20rose-pin?= =?UTF-8?q?=C3=A9=20colorscheme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 4 +-- lua/plugins/theme.lua | 57 ++++++++++++++++++++++++++++++------------- 2 files changed, 42 insertions(+), 19 deletions(-) diff --git a/init.lua b/init.lua index 4f9e03c..d263445 100644 --- a/init.lua +++ b/init.lua @@ -22,5 +22,5 @@ vim.api.nvim_create_autocmd('User', { end, }) -vim.o.background = 'light' -vim.cmd 'colorscheme gruvbox' +-- vim.o.background = 'dark' +vim.cmd 'colorscheme rose-pine' diff --git a/lua/plugins/theme.lua b/lua/plugins/theme.lua index 455d48a..3579f0c 100644 --- a/lua/plugins/theme.lua +++ b/lua/plugins/theme.lua @@ -1,26 +1,49 @@ local M = { - 'ellisonleao/gruvbox.nvim', + 'rose-pine/neovim', lazy = true, -- make sure we load this during startup if it is your main colorscheme priority = 1000, -- make sure to load this before all the other start plugins } function M.config() - require('gruvbox').setup { - undercurl = true, - underline = true, - bold = true, - italic = true, - strikethrough = true, - invert_selection = false, - invert_signs = false, - invert_tabline = false, - invert_intend_guides = false, - inverse = true, -- invert background for search, diffs, statuslines and errors - contrast = 'hard', -- can be "hard", "soft" or empty string - palette_overrides = {}, - overrides = {}, - dim_inactive = false, - transparent_mode = true, + require('rose-pine').setup { + --- @usage 'main' | 'moon' + dark_variant = 'moon', + bold_vert_split = false, + dim_nc_background = false, + disable_background = true, + disable_float_background = false, + disable_italics = false, + + --- @usage string hex value or named color from rosepinetheme.com/palette + groups = { + background = 'base', + panel = 'surface', + border = 'highlight_med', + comment = 'muted', + link = 'iris', + punctuation = 'subtle', + + error = 'love', + hint = 'iris', + info = 'foam', + warn = 'gold', + + headings = { + h1 = 'iris', + h2 = 'foam', + h3 = 'rose', + h4 = 'gold', + h5 = 'pine', + h6 = 'foam', + }, + -- or set all headings at once + -- headings = 'subtle' + }, + + -- Change specific vim highlight groups + highlight_groups = { + ColorColumn = { bg = 'rose' }, + }, } end