diff --git a/colors/rose-pine.lua b/colors/rose-pine.lua new file mode 100644 index 0000000..fd735a8 --- /dev/null +++ b/colors/rose-pine.lua @@ -0,0 +1,3 @@ +package.loaded['rose-pine.palette'] = nil + +require('rose-pine').colorscheme() diff --git a/colors/rose-pine.vim b/colors/rose-pine.vim deleted file mode 100644 index 0df6221..0000000 --- a/colors/rose-pine.vim +++ /dev/null @@ -1,3 +0,0 @@ -lua package.loaded['rose-pine.palette'] = nil - -lua require('rose-pine').colorscheme() diff --git a/lua/rose-pine/plugins/bufferline.lua b/lua/rose-pine/plugins/bufferline.lua index 631b8b6..db722cf 100644 --- a/lua/rose-pine/plugins/bufferline.lua +++ b/lua/rose-pine/plugins/bufferline.lua @@ -4,202 +4,220 @@ --- @usage --- local highlights = require('rose-pine.plugins.bufferline') --- require('bufferline').setup({ highlights = highlights }) + local p = require('rose-pine.palette') return { - -- fill = { - -- guifg = '', - -- guibg = '', - -- }, - -- background = { - -- guifg = '', - -- guibg = '', - -- }, - -- tab = { - -- guifg = '', - -- guibg = '', - -- }, - -- tab_selected = { - -- guifg = '', - -- guibg = '', - -- }, - -- tab_close = { - -- guifg = '', - -- guibg = '', - -- }, - -- close_button = { - -- guifg = '', - -- guibg = '', - -- }, - -- close_button_visible = { - -- guifg = '', - -- guibg = '', - -- }, - -- close_button_selected = { - -- guifg = '', - -- guibg = '', - -- }, - buffer_visible = {guifg = p.subtle, guibg = p.base}, - buffer_selected = {guifg = p.text, guibg = p.surface, gui = 'bold,italic'} - -- diagnostic = { - -- guifg = '', - -- guibg = '', - -- }, - -- diagnostic_visible = { - -- guifg = '', - -- guibg = '', - -- }, - -- diagnostic_selected = { - -- guifg = '', - -- guibg = '', - -- gui = 'bold,italic', - -- }, - -- info = { - -- guifg = '', - -- guisp = '', - -- guibg = '', - -- }, - -- info_visible = { - -- guifg = '', - -- guibg = '', - -- }, - -- info_selected = { - -- guifg = '', - -- guibg = '', - -- gui = 'bold,italic', - -- guisp = '', - -- }, - -- info_diagnostic = { - -- guifg = '', - -- guisp = '', - -- guibg = '', - -- }, - -- info_diagnostic_visible = { - -- guifg = '', - -- guibg = '', - -- }, - -- info_diagnostic_selected = { - -- guifg = '', - -- guibg = '', - -- gui = 'bold,italic', - -- guisp = '', - -- }, - -- warning = { - -- guifg = '', - -- guisp = '', - -- guibg = '', - -- }, - -- warning_visible = { - -- guifg = '', - -- guibg = '', - -- }, - -- warning_selected = { - -- guifg = '', - -- guibg = '', - -- gui = 'bold,italic', - -- guisp = '', - -- }, - -- warning_diagnostic = { - -- guifg = '', - -- guisp = '', - -- guibg = '', - -- }, - -- warning_diagnostic_visible = { - -- guifg = '', - -- guibg = '', - -- }, - -- warning_diagnostic_selected = { - -- guifg = '', - -- guibg = '', - -- gui = 'bold,italic', - -- guisp = warning_diagnostic_fg, - -- }, - -- error = { - -- guifg = '', - -- guibg = '', - -- guisp = '', - -- }, - -- error_visible = { - -- guifg = '', - -- guibg = '', - -- }, - -- error_selected = { - -- guifg = '', - -- guibg = '', - -- gui = 'bold,italic', - -- guisp = '', - -- }, - -- error_diagnostic = { - -- guifg = '', - -- guibg = '', - -- guisp = '', - -- }, - -- error_diagnostic_visible = { - -- guifg = '', - -- guibg = '', - -- }, - -- error_diagnostic_selected = { - -- guifg = '', - -- guibg = '', - -- gui = 'bold,italic', - -- guisp = '', - -- }, - -- modified = { - -- guifg = '', - -- guibg = '', - -- }, - -- modified_visible = { - -- guifg = '', - -- guibg = '', - -- }, - -- modified_selected = { - -- guifg = '', - -- guibg = '', - -- }, - -- duplicate_selected = { - -- guifg = '', - -- gui = 'italic', - -- guibg = '', - -- }, - -- duplicate_visible = { - -- guifg = '', - -- gui = 'italic', - -- guibg = '', - -- }, - -- duplicate = { - -- guifg = '', - -- gui = 'italic', - -- guibg = '', - -- }, - -- separator_selected = { - -- guifg = '', - -- guibg = '', - -- }, - -- separator_visible = { - -- guifg = '', - -- guibg = '', - -- }, - -- separator = { - -- guifg = '', - -- guibg = '', - -- }, - -- indicator_selected = { - -- guifg = '', - -- guibg = '', - -- }, - -- pick_selected = { - -- guifg = '', - -- guibg = '', - -- gui = 'bold,italic', - -- }, - -- pick_visible = { - -- guifg = '', - -- guibg = '', - -- gui = 'bold,italic', - -- }, - -- pick = { - -- guifg = '', - -- guibg = '', - -- gui = 'bold,italic', - -- }, + -- fill = { + -- fg = '', + -- bg = '', + -- }, + -- background = { + -- fg = '', + -- bg = '', + -- }, + -- tab = { + -- fg = '', + -- bg = '', + -- }, + -- tab_selected = { + -- fg = '', + -- bg = '', + -- }, + -- tab_close = { + -- fg = '', + -- bg = '', + -- }, + -- close_button = { + -- fg = '', + -- bg = '', + -- }, + -- close_button_visible = { + -- fg = '', + -- bg = '', + -- }, + -- close_button_selected = { + -- fg = '', + -- bg = '', + -- }, + buffer_visible = { + fg = p.subtle, + bg = p.base, + }, + buffer_selected = { + fg = p.text, + bg = p.surface, + bold = true, + italic = true, + }, + -- diagnostic = { + -- fg = '', + -- bg = '', + -- }, + -- diagnostic_visible = { + -- fg = '', + -- bg = '', + -- }, + -- diagnostic_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- }, + -- info = { + -- fg = '', + -- sp = '', + -- bg = '', + -- }, + -- info_visible = { + -- fg = '', + -- bg = '', + -- }, + -- info_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = '', + -- }, + -- info_diagnostic = { + -- fg = '', + -- sp = '', + -- bg = '', + -- }, + -- info_diagnostic_visible = { + -- fg = '', + -- bg = '', + -- }, + -- info_diagnostic_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = '', + -- }, + -- warning = { + -- fg = '', + -- sp = '', + -- bg = '', + -- }, + -- warning_visible = { + -- fg = '', + -- bg = '', + -- }, + -- warning_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = '', + -- }, + -- warning_diagnostic = { + -- fg = '', + -- sp = '', + -- bg = '', + -- }, + -- warning_diagnostic_visible = { + -- fg = '', + -- bg = '', + -- }, + -- warning_diagnostic_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = warning_diagnostic_fg, + -- }, + -- error = { + -- fg = '', + -- bg = '', + -- sp = '', + -- }, + -- error_visible = { + -- fg = '', + -- bg = '', + -- }, + -- error_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = '', + -- }, + -- error_diagnostic = { + -- fg = '', + -- bg = '', + -- sp = '', + -- }, + -- error_diagnostic_visible = { + -- fg = '', + -- bg = '', + -- }, + -- error_diagnostic_selected = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- sp = '', + -- }, + -- modified = { + -- fg = '', + -- bg = '', + -- }, + -- modified_visible = { + -- fg = '', + -- bg = '', + -- }, + -- modified_selected = { + -- fg = '', + -- bg = '', + -- }, + -- duplicate_selected = { + -- fg = '', + -- italic = true, + -- bg = '', + -- }, + -- duplicate_visible = { + -- fg = '', + -- italic = true, + -- bg = '', + -- }, + -- duplicate = { + -- fg = '', + -- italic = true, + -- bg = '', + -- }, + -- separator_selected = { + -- fg = '', + -- bg = '', + -- }, + -- separator_visible = { + -- fg = '', + -- bg = '', + -- }, + -- separator = { + -- fg = '', + -- bg = '', + -- }, + -- indicator_selected = { + -- fg = '', + -- bg = '', + -- }, + -- pick_selected = { + -- fg = '', + -- bg = '', + -- italic = true, + -- }, + -- pick_visible = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- }, + -- pick = { + -- fg = '', + -- bg = '', + -- bold = true, + -- italic = true, + -- }, } diff --git a/lua/rose-pine/theme.lua b/lua/rose-pine/theme.lua index 4aa6032..b87b3ae 100644 --- a/lua/rose-pine/theme.lua +++ b/lua/rose-pine/theme.lua @@ -281,6 +281,56 @@ function M.get() TSVariable = {fg = p.text, style = styles.italic}, TSVariableBuiltin = {fg = p.love}, + -- Treesitter + ['@annotation'] = { link = 'PreProc' }, + ['@attribute'] = { link = 'PreProc' }, + ['@boolean'] = { link = 'Boolean' }, + ['@character'] = { link = 'Character' }, + ['@comment'] = { link = 'Comment' }, + ['@conditional'] = { link = 'Conditional' }, + ['@constant'] = { fg = p.foam }, + ['@constant.builtin'] = { fg = p.love }, + ['@constructor'] = { fg = p.foam }, + ['@field'] = { fg = p.foam }, + ['@function'] = { fg = p.rose }, + ['@function.builtin'] = { fg = p.love }, + ['@include'] = { fg = p.pine }, + ['@keyword'] = { fg = p.pine }, + ['@keyword.operator'] = { fg = p.subtle }, + ['@label'] = { fg = p.foam }, + ['@namespace'] = { link = 'Include' }, + ['@number'] = { link = 'Number' }, + ['@operator'] = { fg = p.subtle }, + ['@parameter'] = { fg = p.iris, style = styles.italic }, + ['@property'] = { fg = p.iris, style = styles.italic }, + ['@punctuation.bracket'] = { fg = groups.punctuation }, + ['@punctuation.delimiter'] = { fg = groups.punctuation }, + ['@punctuation.special'] = { fg = groups.punctuation }, + ['@string'] = { link = 'String' }, + ['@string.escape'] = { fg = p.pine }, + ['@string.special'] = { link = '@string' }, + ['@symbol'] = { link = 'Identifier' }, + ['@tag'] = { fg = p.foam }, + ['@tag.attribute'] = { link = '@property' }, + ['@tag.delimiter'] = { fg = p.subtle }, + ['@text'] = { fg = p.text }, + ['@text.strong'] = { bold = true }, + ['@text.emphasis'] = { italic = true }, + ['@text.underline'] = { underline = true }, + ['@text.strike'] = { strikethrough = true }, + ['@text.math'] = { link = 'Special' }, + ['@text.environment'] = { link = 'Macro' }, + ['@text.environment.name'] = { link = 'Type' }, + ['@text.title'] = { fg = groups.headings.h1, style = 'bold' }, + ['@text.uri'] = { fg = groups.link }, + ['@text.note'] = { link = 'SpecialComment' }, + ['@text.warning'] = { link = 'Todo' }, + ['@text.danger'] = { link = 'WarningMsg' }, + ['@todo'] = { link = 'Todo' }, + ['@type'] = { link = 'Type' }, + ['@variable'] = { fg = p.text, style = styles.italic }, + ['@variable.builtin'] = { fg = p.love }, + -- vim.lsp.buf.document_highlight() LspReferenceText = {bg = p.highlight_med}, LspReferenceRead = {bg = p.highlight_med},