From 73c5046bf3dab3353490fbb9796342a75157f72e Mon Sep 17 00:00:00 2001 From: mvllow Date: Mon, 7 Feb 2022 12:12:17 -0600 Subject: [PATCH 001/190] docs: update tag --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index bd14ad4..c9f8619 100644 --- a/readme.md +++ b/readme.md @@ -17,7 +17,7 @@ use({ 'rose-pine/neovim', as = 'rose-pine', - -- tag = '...', + tag = '0.5.0', config = function() vim.cmd('colorscheme rose-pine') end From acee7a0b0936b93c72d861239ab66f6f3604a44b Mon Sep 17 00:00:00 2001 From: mvllow Date: Tue, 8 Feb 2022 08:58:53 -0600 Subject: [PATCH 002/190] reduce contrast of cursorline and cursorcolumn closes #65 --- lua/rose-pine/theme.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/rose-pine/theme.lua b/lua/rose-pine/theme.lua index 0c9e423..36d393a 100644 --- a/lua/rose-pine/theme.lua +++ b/lua/rose-pine/theme.lua @@ -33,9 +33,9 @@ local theme = { ColorColumn = { bg = palette.highlight_high }, Conceal = { bg = palette.none }, -- Cursor = {}, - CursorColumn = { bg = palette.overlay }, + CursorColumn = { bg = palette.highlight_low }, -- CursorIM = {}, - CursorLine = { bg = palette.overlay }, + CursorLine = { bg = palette.highlight_low }, CursorLineNr = { fg = palette.text }, DarkenedPanel = { bg = palette.surface }, DarkenedStatusline = { bg = palette.surface }, From 0e23ee652d7b5430e06c288faae3cc16d3b36d06 Mon Sep 17 00:00:00 2001 From: Daniel Mathiot Date: Tue, 8 Feb 2022 19:47:47 +0100 Subject: [PATCH 003/190] feat: Add nvim-notify highlights (#66) --- lua/rose-pine/theme.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lua/rose-pine/theme.lua b/lua/rose-pine/theme.lua index 36d393a..4a2aafa 100644 --- a/lua/rose-pine/theme.lua +++ b/lua/rose-pine/theme.lua @@ -438,6 +438,23 @@ local theme = { TelescopeSelection = { fg = palette.text, bg = palette.overlay }, TelescopeSelectionCaret = { fg = palette.rose, bg = palette.overlay }, TelescopeTitle = { fg = palette.subtle }, + + -- rcarriga/nvim-notify + NotifyINFOBorder = { fg = palette.foam }, + NotifyINFOTitle = { link = 'NotifyINFOBorder' }, + NotifyINFOIcon = { link = 'NotifyINFOBorder' }, + NotifyWARNBorder = { fg = palette.gold }, + NotifyWARNTitle = { link = 'NotifyWARNBorder' }, + NotifyWARNIcon = { link = 'NotifyWARNBorder' }, + NotifyDEBUGBorder = { fg = palette.muted }, + NotifyDEBUGTitle = { link = 'NotifyDEBUGBorder' }, + NotifyDEBUGIcon = { link = 'NotifyDEBUGBorder' }, + NotifyTRACEBorder = { fg = palette.iris }, + NotifyTRACETitle = { link = 'NotifyTRACEBorder' }, + NotifyTRACEIcon = { link = 'NotifyTRACEBorder' }, + NotifyERRORBorder = { fg = palette.love }, + NotifyERRORTitle = { link = 'NotifyERRORBorder' }, + NotifyERRORIcon = { link = 'NotifyERRORBorder' }, } vim.g.terminal_color_0 = palette.overlay -- black From 6cbc72a75dd8a50382ac63fe8fb0734772d92cee Mon Sep 17 00:00:00 2001 From: not Date: Thu, 10 Feb 2022 10:31:12 -0600 Subject: [PATCH 004/190] Update readme.md --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index c9f8619..9de2413 100644 --- a/readme.md +++ b/readme.md @@ -41,6 +41,7 @@ use({ - [lspsaga.nvim](https://github.com/tami5/lspsaga.nvim) - [pounce.nvim](https://github.com/rlane/pounce.nvim) - [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) +- [nvim-notify](https://github.com/rcarriga/nvim-notify) - [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim) ```lua From c207a62f52f7af096aa3fe00a751ed5869ed6a62 Mon Sep 17 00:00:00 2001 From: not Date: Thu, 10 Feb 2022 16:04:33 -0600 Subject: [PATCH 005/190] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 9de2413..db9452a 100644 --- a/readme.md +++ b/readme.md @@ -17,7 +17,7 @@ use({ 'rose-pine/neovim', as = 'rose-pine', - tag = '0.5.0', + tag = 'v0.*', config = function() vim.cmd('colorscheme rose-pine') end From 317a7c8473c16ced00a876c3742635975a71a1c9 Mon Sep 17 00:00:00 2001 From: not Date: Sun, 13 Feb 2022 16:06:19 -0600 Subject: [PATCH 006/190] breaking: move to lua config (#64) Co-authored-by: fvrests --- colors/rose-pine.vim | 3 - lua/rose-pine/bufferline/init.lua | 23 - lua/rose-pine/config.lua | 74 --- lua/rose-pine/galaxyline/theme.lua | 22 +- lua/rose-pine/init.lua | 204 +++++-- lua/rose-pine/palette.lua | 8 +- lua/rose-pine/theme.lua | 896 ++++++++++++++--------------- readme.md | 91 ++- 8 files changed, 643 insertions(+), 678 deletions(-) delete mode 100644 lua/rose-pine/bufferline/init.lua delete mode 100644 lua/rose-pine/config.lua diff --git a/colors/rose-pine.vim b/colors/rose-pine.vim index af1ddba..0df6221 100644 --- a/colors/rose-pine.vim +++ b/colors/rose-pine.vim @@ -1,6 +1,3 @@ -lua package.loaded['rose-pine'] = nil -lua package.loaded['rose-pine.config'] = nil lua package.loaded['rose-pine.palette'] = nil -lua package.loaded['rose-pine.theme'] = nil lua require('rose-pine').colorscheme() diff --git a/lua/rose-pine/bufferline/init.lua b/lua/rose-pine/bufferline/init.lua deleted file mode 100644 index 3ae77b4..0000000 --- a/lua/rose-pine/bufferline/init.lua +++ /dev/null @@ -1,23 +0,0 @@ -local p = require('rose-pine.palette') - --- TODO: Someone who uses bufferline.nvim is free to PR with this addition --- `:h bufferline-highlights` --- --- The intended use would be (or any better solution): --- --- ``` --- local highlights = require('rose-pine.bufferline') --- require('bufferline').setup({ --- highlights = highlights --- }) --- ``` -return { - fill = { - guifg = p.text, - guibg = p.base, - }, - background = { - guifg = p.text, - guibg = p.base, - }, -} diff --git a/lua/rose-pine/config.lua b/lua/rose-pine/config.lua deleted file mode 100644 index 6b3ac12..0000000 --- a/lua/rose-pine/config.lua +++ /dev/null @@ -1,74 +0,0 @@ -local palette = require('rose-pine.palette') - -local function opt(key, default) - key = 'rose_pine_' .. key - - if vim.g[key] == nil then - return default - end - - if vim.g[key] == 0 or vim.g[key] == false then - return false - end - - return vim.g[key] -end - -local config = { - variant = opt('variant', 'main'), - - bold_vertical_split_line = opt('bold_vertical_split_line', false), - disable_italics = opt('disable_italics', false), - disable_background = opt('disable_background', false), - disable_float_background = opt('disable_float_background', false), - inactive_background = opt('inactive_background', false), - - colors = { - border = palette.highlight_med, - comment = palette.muted, - link = palette.iris, - punctuation = palette.subtle, - - error = palette.love, - hint = palette.iris, - info = palette.foam, - warn = palette.gold, - - git_add = palette.foam, - git_change = palette.rose, - git_delete = palette.love, - git_dirty = palette.rose, - git_ignore = palette.muted, - git_merge = palette.iris, - git_rename = palette.pine, - git_stage = palette.iris, - git_text = palette.rose, - - ---@type string|table - headings = { - h1 = palette.iris, - h2 = palette.foam, - h3 = palette.rose, - h4 = palette.gold, - h5 = palette.pine, - h6 = palette.foam, - }, - }, -} - -local colors = vim.g.rose_pine_colors or {} - -if type(colors.headings) == 'string' then - colors.headings = { - h1 = colors.headings, - h2 = colors.headings, - h3 = colors.headings, - h4 = colors.headings, - h5 = colors.headings, - h6 = colors.headings, - } -end - -config.colors = vim.tbl_deep_extend('force', config.colors, colors) - -return config diff --git a/lua/rose-pine/galaxyline/theme.lua b/lua/rose-pine/galaxyline/theme.lua index 5142949..1183aa9 100644 --- a/lua/rose-pine/galaxyline/theme.lua +++ b/lua/rose-pine/galaxyline/theme.lua @@ -3,17 +3,17 @@ if not present then return end -local palette = require('rose-pine.palette') +local p = require('rose-pine.palette') galaxyline_colors['rose-pine'] = { - bg = palette.overlay, - fg = palette.text, - fg_alt = palette.subtle, - blue = palette.foam, - cyan = palette.foam, - green = palette.muted, - magenta = palette.iris, - orange = palette.rose, - red = palette.love, - yellow = palette.gold, + bg = p.overlay, + fg = p.text, + fg_alt = p.subtle, + blue = p.foam, + cyan = p.foam, + green = p.muted, + magenta = p.iris, + orange = p.rose, + red = p.love, + yellow = p.gold, } diff --git a/lua/rose-pine/init.lua b/lua/rose-pine/init.lua index f872457..4e10311 100644 --- a/lua/rose-pine/init.lua +++ b/lua/rose-pine/init.lua @@ -1,4 +1,156 @@ local M = {} +local show_init_messages = true + +local function check_for_deprecated_opts() + local alerts = {} + local should_alert = false + + -- Deprecated options + if vim.g.rose_pine_bold_vertical_split_line ~= nil then + should_alert = true + table.insert(alerts, 'vim.g.rose_pine_bold_vertical_split_line renamed to bold_vert_split') + end + + if vim.g.rose_pine_inactive_background ~= nil then + should_alert = true + table.insert(alerts, 'vim.g.rose_pine_inactive_background renamed to dim_nc_background') + end + + if vim.g.rose_pine_disable_background ~= nil then + should_alert = true + table.insert(alerts, 'vim.g.rose_pine_disable_background renamed to disable_background') + end + + if vim.g.rose_pine_disable_float_background ~= nil then + should_alert = true + table.insert( + alerts, + 'vim.g.rose_pine_disable_float_background renamed to disable_float_background' + ) + end + + if vim.g.rose_pine_disable_italics ~= nil then + should_alert = true + table.insert(alerts, 'vim.g.rose_pine_disable_italics renamed to disable_italics') + end + + if vim.g.rose_pine_colors ~= nil then + should_alert = true + table.insert(alerts, 'vim.g.rose_pine_colors renamed to groups') + end + + if should_alert then + local prefix = ' ' + print('Rosé Pine – https://github.com/rose-pine/neovim') + print(prefix .. 'vim.g.rose_pine_