fix: misspelled highlight group name (#223)

This commit is contained in:
Wahyu Wiyoko 2024-01-27 23:43:15 +08:00 committed by GitHub
commit 8514c638bc
6 changed files with 112 additions and 114 deletions

View file

@ -202,8 +202,8 @@ local function set_highlights()
Macro = { fg = palette.iris }, Macro = { fg = palette.iris },
Number = { fg = palette.gold }, Number = { fg = palette.gold },
Operator = { fg = palette.subtle }, Operator = { fg = palette.subtle },
PreConduit = { fg = palette.iris }, PreCondit = { fg = palette.iris },
PreProc = { link = "PreConduit" }, PreProc = { link = "PreCondit" },
Repeat = { fg = palette.pine }, Repeat = { fg = palette.pine },
Special = { fg = palette.foam }, Special = { fg = palette.foam },
SpecialChar = { link = "Special" }, SpecialChar = { link = "Special" },
@ -547,7 +547,7 @@ local function set_highlights()
-- tami5/lspsaga.nvim (fork of glepnir/lspsaga.nvim) -- tami5/lspsaga.nvim (fork of glepnir/lspsaga.nvim)
DefinitionCount = { fg = palette.rose }, DefinitionCount = { fg = palette.rose },
DefinitionIcon = { fg = palette.rose }, DefinitionIcon = { fg = palette.rose },
DefintionPreviewTitle = { fg = palette.rose, bold = styles.bold }, DefinitionPreviewTitle = { fg = palette.rose, bold = styles.bold },
LspFloatWinBorder = make_border(), LspFloatWinBorder = make_border(),
LspFloatWinNormal = { bg = groups.panel }, LspFloatWinNormal = { bg = groups.panel },
LspSagaAutoPreview = { fg = palette.subtle }, LspSagaAutoPreview = { fg = palette.subtle },
@ -605,7 +605,7 @@ local function set_highlights()
-- ibhagwan/fzf-lua -- ibhagwan/fzf-lua
FzfLuaNormal = { link = "NormalFloat" }, FzfLuaNormal = { link = "NormalFloat" },
FwzfLuaTitle = { fg = palette.foam, bold = styles.bold }, FzfLuaTitle = { fg = palette.foam, bold = styles.bold },
FzfLuaBorder = make_border(), FzfLuaBorder = make_border(),
FzfLuaHeaderText = { fg = palette.love }, FzfLuaHeaderText = { fg = palette.love },
FzfLuaHeaderBind = { fg = palette.rose }, FzfLuaHeaderBind = { fg = palette.rose },

View file

@ -2,43 +2,43 @@
--- https://github.com/akinsho/bufferline.nvim --- https://github.com/akinsho/bufferline.nvim
--- ---
--- @usage --- @usage
--- local highlights = require('rose-pine.plugins.bufferline') --- local highlights = require("rose-pine.plugins.bufferline")
--- require('bufferline').setup({ highlights = highlights }) --- require("bufferline").setup({ highlights = highlights })
local p = require("rose-pine.palette") local p = require("rose-pine.palette")
return { return {
-- fill = { -- fill = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- background = { -- background = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- tab = { -- tab = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
tab_selected = { tab_selected = {
fg = p.text, fg = p.text,
bg = p.overlay, bg = p.overlay,
}, },
-- tab_close = { -- tab_close = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- close_button = { -- close_button = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- close_button_visible = { -- close_button_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- close_button_selected = { -- close_button_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
buffer_visible = { buffer_visible = {
fg = p.subtle, fg = p.subtle,
@ -51,172 +51,172 @@ return {
italic = true, italic = true,
}, },
-- diagnostic = { -- diagnostic = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- diagnostic_visible = { -- diagnostic_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- diagnostic_selected = { -- diagnostic_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- bold = true, -- bold = true,
-- italic = true, -- italic = true,
-- }, -- },
-- info = { -- info = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- info_visible = { -- info_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- info_selected = { -- info_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- bold = true, -- bold = true,
-- italic = true, -- italic = true,
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- }, -- },
-- info_diagnostic = { -- info_diagnostic = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- info_diagnostic_visible = { -- info_diagnostic_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- info_diagnostic_selected = { -- info_diagnostic_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- bold = true, -- bold = true,
-- italic = true, -- italic = true,
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- }, -- },
-- warning = { -- warning = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- warning_visible = { -- warning_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- warning_selected = { -- warning_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- bold = true, -- bold = true,
-- italic = true, -- italic = true,
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- }, -- },
-- warning_diagnostic = { -- warning_diagnostic = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- warning_diagnostic_visible = { -- warning_diagnostic_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- warning_diagnostic_selected = { -- warning_diagnostic_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- bold = true, -- bold = true,
-- italic = true, -- italic = true,
-- sp = warning_diagnostic_fg, -- sp = warning_diagnostic_fg,
-- }, -- },
-- error = { -- error = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- }, -- },
-- error_visible = { -- error_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- error_selected = { -- error_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- bold = true, -- bold = true,
-- italic = true, -- italic = true,
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- }, -- },
-- error_diagnostic = { -- error_diagnostic = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- }, -- },
-- error_diagnostic_visible = { -- error_diagnostic_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- error_diagnostic_selected = { -- error_diagnostic_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- bold = true, -- bold = true,
-- italic = true, -- italic = true,
-- sp = '<color-value-here>', -- sp = "<color-value-here>",
-- }, -- },
-- modified = { -- modified = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- modified_visible = { -- modified_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- modified_selected = { -- modified_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- duplicate_selected = { -- duplicate_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- italic = true, -- italic = true,
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- duplicate_visible = { -- duplicate_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- italic = true, -- italic = true,
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- duplicate = { -- duplicate = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- italic = true, -- italic = true,
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- separator_selected = { -- separator_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- separator_visible = { -- separator_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- separator = { -- separator = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- indicator_selected = { -- indicator_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- }, -- },
-- pick_selected = { -- pick_selected = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- italic = true, -- italic = true,
-- }, -- },
-- pick_visible = { -- pick_visible = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- bold = true, -- bold = true,
-- italic = true, -- italic = true,
-- }, -- },
-- pick = { -- pick = {
-- fg = '<color-value-here>', -- fg = "<color-value-here>",
-- bg = '<color-value-here>', -- bg = "<color-value-here>",
-- bold = true, -- bold = true,
-- italic = true, -- italic = true,
-- }, -- },

View file

@ -2,7 +2,7 @@
--- https://github.com/NTBBloodbath/galaxyline.nvim --- https://github.com/NTBBloodbath/galaxyline.nvim
--- ---
--- @usage --- @usage
--- local highlights = require('rose-pine.plugins.galaxyline') --- local highlights = require("rose-pine.plugins.galaxyline")
local p = require("rose-pine.palette") local p = require("rose-pine.palette")

View file

@ -2,7 +2,7 @@
--- https://github.com/David-Kunz/markid --- https://github.com/David-Kunz/markid
--- ---
--- @usage --- @usage
--- local highlights = require('rose-pine.plugins.markid') --- local highlights = require("rose-pine.plugins.markid")
--- require("nvim-treesitter.configs").setup({ markid = { enable = true, colors = highlights } }) --- require("nvim-treesitter.configs").setup({ markid = { enable = true, colors = highlights } })
local p = require("rose-pine.palette") local p = require("rose-pine.palette")

View file

@ -2,8 +2,8 @@
--- https://github.com/akinsho/toggleterm.nvim --- https://github.com/akinsho/toggleterm.nvim
--- ---
--- @usage --- @usage
--- local highlights = require('rose-pine.plugins.toggleterm') --- local highlights = require("rose-pine.plugins.toggleterm")
--- require('toggleterm').setup({ highlights = highlights }) --- require("toggleterm").setup({ highlights = highlights })
return { return {
Normal = { link = "Normal" }, Normal = { link = "Normal" },

View file

@ -18,13 +18,13 @@ Install `rose-pine/neovim` using your favourite plugin manager:
**paq-nvim** **paq-nvim**
```lua ```lua
{ 'rose-pine/neovim', as = 'rose-pine' } { "rose-pine/neovim", as = "rose-pine" }
``` ```
**lazy.nvim** **lazy.nvim**
```lua ```lua
{ 'rose-pine/neovim', name = 'rose-pine' } { "rose-pine/neovim", name = "rose-pine" }
``` ```
## Gallery ## Gallery
@ -51,7 +51,7 @@ Rosé Pine has three variants: main, moon, and dawn. By default, `vim.o.backgrou
Colour values accept named colours from the [Rosé Pine palette](https://rosepinetheme.com/palette/ingredients/), e.g. "foam", or valid hex, e.g. "#fa8072". Colour values accept named colours from the [Rosé Pine palette](https://rosepinetheme.com/palette/ingredients/), e.g. "foam", or valid hex, e.g. "#fa8072".
```lua ```lua
require('rose-pine').setup({ require("rose-pine").setup({
variant = "auto", -- auto, main, moon, or dawn variant = "auto", -- auto, main, moon, or dawn
dark_variant = "main", -- main, moon, or dawn dark_variant = "main", -- main, moon, or dawn
dim_inactive_windows = false, dim_inactive_windows = false,
@ -59,10 +59,8 @@ require('rose-pine').setup({
enable = { enable = {
terminal = true, terminal = true,
-- Improve compatibility for previous versions of Neovim legacy_highlights = true, -- Improve compatibility for previous versions of Neovim
legacy_highlights = true, migrations = true, -- Handle deprecated options automatically
-- Handle deprecated options automatically
migrations = true,
}, },
styles = { styles = {
@ -120,10 +118,10 @@ require('rose-pine').setup({
end, end,
}) })
vim.cmd('colorscheme rose-pine') vim.cmd("colorscheme rose-pine")
-- vim.cmd('colorscheme rose-pine-main') -- vim.cmd("colorscheme rose-pine-main")
-- vim.cmd('colorscheme rose-pine-moon') -- vim.cmd("colorscheme rose-pine-moon")
-- vim.cmd('colorscheme rose-pine-dawn') -- vim.cmd("colorscheme rose-pine-dawn")
``` ```
> [!NOTE] > [!NOTE]