mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
Compare commits
No commits in common. "main" and "0.5.0" have entirely different histories.
28 changed files with 855 additions and 2160 deletions
|
|
@ -1,12 +0,0 @@
|
||||||
root = true
|
|
||||||
|
|
||||||
[*]
|
|
||||||
charset = utf-8
|
|
||||||
end_of_line = lf
|
|
||||||
indent_style = tab
|
|
||||||
insert_final_newline = true
|
|
||||||
trim_trailing_whitespace = true
|
|
||||||
|
|
||||||
[*.{yaml,yml}]
|
|
||||||
indent_size = 2
|
|
||||||
indent_style = space
|
|
||||||
54
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
54
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
|
|
@ -1,54 +0,0 @@
|
||||||
name: Bug Report
|
|
||||||
description: File a bug/issue
|
|
||||||
title: "bug: "
|
|
||||||
labels: [bug]
|
|
||||||
body:
|
|
||||||
- type: markdown
|
|
||||||
attributes:
|
|
||||||
value: |
|
|
||||||
**Before** reporting an issue, make sure to read the [documentation](https://github.com/rose-pine/neovim) and search [existing issues](https://github.com/rose-pine/neovim/issues). Usage questions such as ***"How do I...?"*** belong in [Discussions](https://github.com/rose-pine/neovim/discussions) and will be closed.
|
|
||||||
- type: input
|
|
||||||
attributes:
|
|
||||||
label: "Neovim version (nvim -v)"
|
|
||||||
placeholder: "0.8.0 commit db1b0ee3b30f"
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: input
|
|
||||||
attributes:
|
|
||||||
label: "Terminal / multiplexer"
|
|
||||||
placeholder: "Kitty / tmux"
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Describe the bug
|
|
||||||
description: A clear and concise description of what the bug is. Please include screenshots if possible and any related errors you see in Neovim.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
- type: textarea
|
|
||||||
attributes:
|
|
||||||
label: Repro
|
|
||||||
description: Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua`
|
|
||||||
value: |
|
|
||||||
vim.o.packpath = "/tmp/nvim/site"
|
|
||||||
|
|
||||||
local plugins = {
|
|
||||||
rose_pine = "https://github.com/rose-pine/neovim",
|
|
||||||
-- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
|
|
||||||
}
|
|
||||||
|
|
||||||
for name, url in pairs(plugins) do
|
|
||||||
local install_path = "/tmp/nvim/site/pack/test/start/" .. name
|
|
||||||
if vim.fn.isdirectory(install_path) == 0 then
|
|
||||||
vim.fn.system({ "git", "clone", "--depth=1", url, install_path })
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
require("rose-pine").setup({
|
|
||||||
-- ADD ROSÉ PINE CONFIG THAT IS _NECESSARY_ TO REPRODUCE THE ISSUE
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.cmd("colorscheme rose-pine")
|
|
||||||
render: Lua
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
17
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
17
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
|
|
@ -1,17 +0,0 @@
|
||||||
name: Feature Request
|
|
||||||
description: Suggest a new feature
|
|
||||||
title: "feature: "
|
|
||||||
labels: [enhancement]
|
|
||||||
body:
|
|
||||||
- type: textarea
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
attributes:
|
|
||||||
label: Describe the solution you'd like
|
|
||||||
description: A clear and concise description of what you want to happen.
|
|
||||||
- type: textarea
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
attributes:
|
|
||||||
label: Additional context
|
|
||||||
description: Add any other context or screenshots about the feature request here.
|
|
||||||
6
.stylua.toml
Normal file
6
.stylua.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
column_width = 100
|
||||||
|
indent_type = "Tabs"
|
||||||
|
indent_width = 3
|
||||||
|
line_endings = "Unix"
|
||||||
|
quote_style = "AutoPreferSingle"
|
||||||
|
|
||||||
82
changelog.md
82
changelog.md
|
|
@ -1,82 +0,0 @@
|
||||||
# Changelog
|
|
||||||
|
|
||||||
## v2.0.0-next.1
|
|
||||||
|
|
||||||
### What's new
|
|
||||||
|
|
||||||
- Add proper support for `StatusLineTerm` & `StatusLineTermNC`, controlled via `enable.terminal`
|
|
||||||
- Add background glow to diagnostic virtual text
|
|
||||||
- Add `extend_background_behind_borders`
|
|
||||||
- Add `styles.bold` and alternatively styling when disabled
|
|
||||||
- Add `before_highlight` hook to allow changing palette values and behaviours
|
|
||||||
- Increase contrast of search, visual selections, and more
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
**extend_background_behind_borders**
|
|
||||||
|
|
||||||
Extend float backgrounds behind borders. Results vary depending on your border characters.
|
|
||||||
|
|
||||||
```lua
|
|
||||||
{
|
|
||||||
extend_background_behind_borders = true
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
**styles.transparency**
|
|
||||||
|
|
||||||
Enable a unique experience focused around transparent terminals, avoiding large backgrounds and differentiating selections with foreground colours when possible.
|
|
||||||
|
|
||||||
```lua
|
|
||||||
{
|
|
||||||
styles = {
|
|
||||||
transparency = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
**before_highlight**
|
|
||||||
|
|
||||||
```lua
|
|
||||||
{
|
|
||||||
before_highlight = function(group, highlight, palette)
|
|
||||||
-- Disable all undercurls
|
|
||||||
if highlight.undercurl then
|
|
||||||
highlight.undercurl = false
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Change palette colour
|
|
||||||
if highlight.fg == palette.pine then
|
|
||||||
highlight.fg = palette.foam
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Breaking changes
|
|
||||||
|
|
||||||
> [!WARNING]
|
|
||||||
> Removed or renamed options should continue to work via internal migrations but backwards compatibility is not tested and may break at any time.
|
|
||||||
|
|
||||||
```diff
|
|
||||||
- dim_nc_background = true,
|
|
||||||
+ dim_inactive_windows = true,
|
|
||||||
|
|
||||||
- disable_background = true,
|
|
||||||
- disable_float_background = true,
|
|
||||||
+ styles.transparency = true
|
|
||||||
|
|
||||||
- disable_italics = true,
|
|
||||||
+ styles.italic = false,
|
|
||||||
|
|
||||||
- groups = {
|
|
||||||
- background = "...",
|
|
||||||
- comment = "...",
|
|
||||||
- punctuation = "...",
|
|
||||||
- },
|
|
||||||
+ highlight_groups = {
|
|
||||||
+ Normal = { bg = "..." },
|
|
||||||
+ Comment = { fg = "..." },
|
|
||||||
+ ["@punctuation"] = { fg = "..." },
|
|
||||||
+ }
|
|
||||||
```
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
package.loaded["rose-pine.palette"] = nil
|
|
||||||
require("rose-pine").colorscheme("dawn")
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
package.loaded["rose-pine.palette"] = nil
|
|
||||||
require("rose-pine").colorscheme("main")
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
package.loaded["rose-pine.palette"] = nil
|
|
||||||
require("rose-pine").colorscheme("moon")
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
package.loaded["rose-pine.palette"] = nil
|
|
||||||
require("rose-pine").colorscheme()
|
|
||||||
6
colors/rose-pine.vim
Normal file
6
colors/rose-pine.vim
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
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()
|
||||||
21
license
21
license
|
|
@ -1,21 +0,0 @@
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2023 Rosé Pine
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
|
|
@ -1,32 +1,26 @@
|
||||||
local p = require("rose-pine.palette")
|
local p = require('rose-pine.palette')
|
||||||
local config = require("rose-pine.config")
|
|
||||||
|
|
||||||
local bg_base = p.base
|
|
||||||
if config.options.styles.transparency then
|
|
||||||
bg_base = "NONE"
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
normal = {
|
normal = {
|
||||||
a = { bg = p.surface, fg = p.rose, gui = "bold" },
|
a = { bg = p.surface, fg = p.rose, gui = 'bold' },
|
||||||
b = { bg = p.surface, fg = p.text },
|
b = { bg = p.surface, fg = p.text },
|
||||||
c = { bg = p.surface, fg = p.subtle, gui = "italic" },
|
c = { bg = p.surface, fg = p.subtle, gui = 'italic' },
|
||||||
},
|
},
|
||||||
insert = {
|
insert = {
|
||||||
a = { bg = p.surface, fg = p.foam, gui = "bold" },
|
a = { bg = p.surface, fg = p.foam, gui = 'bold' },
|
||||||
},
|
},
|
||||||
visual = {
|
visual = {
|
||||||
a = { bg = p.surface, fg = p.iris, gui = "bold" },
|
a = { bg = p.surface, fg = p.iris, gui = 'bold' },
|
||||||
},
|
},
|
||||||
replace = {
|
replace = {
|
||||||
a = { bg = p.surface, fg = p.pine, gui = "bold" },
|
a = { bg = p.surface, fg = p.pine, gui = 'bold' },
|
||||||
},
|
},
|
||||||
command = {
|
command = {
|
||||||
a = { bg = p.surface, fg = p.love, gui = "bold" },
|
a = { bg = p.surface, fg = p.love, gui = 'bold' },
|
||||||
},
|
},
|
||||||
inactive = {
|
inactive = {
|
||||||
a = { bg = bg_base, fg = p.subtle, gui = "bold" },
|
a = { bg = p.base, fg = p.subtle, gui = 'bold' },
|
||||||
b = { bg = bg_base, fg = p.subtle },
|
b = { bg = p.base, fg = p.subtle },
|
||||||
c = { bg = bg_base, fg = p.subtle, gui = "italic" },
|
c = { bg = p.base, fg = p.subtle, gui = 'italic' },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,34 @@
|
||||||
local p = require("rose-pine.palette")
|
local p = require('rose-pine.palette')
|
||||||
local config = require("rose-pine.config")
|
|
||||||
|
|
||||||
local bg_base = p.surface
|
|
||||||
if config.options.styles.transparency then
|
|
||||||
bg_base = "NONE"
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
normal = {
|
normal = {
|
||||||
a = { bg = p.rose, fg = p.base, gui = "bold" },
|
a = { bg = p.rose, fg = p.base, gui = 'bold' },
|
||||||
b = { bg = p.overlay, fg = p.rose },
|
b = { bg = p.overlay, fg = p.rose },
|
||||||
c = { bg = bg_base, fg = p.text },
|
c = { bg = p.base, fg = p.text },
|
||||||
},
|
},
|
||||||
insert = {
|
insert = {
|
||||||
a = { bg = p.foam, fg = p.base, gui = "bold" },
|
a = { bg = p.foam, fg = p.base, gui = 'bold' },
|
||||||
b = { bg = p.overlay, fg = p.foam },
|
b = { bg = p.overlay, fg = p.foam },
|
||||||
c = { bg = bg_base, fg = p.text },
|
c = { bg = p.base, fg = p.text },
|
||||||
},
|
},
|
||||||
visual = {
|
visual = {
|
||||||
a = { bg = p.iris, fg = p.base, gui = "bold" },
|
a = { bg = p.iris, fg = p.base, gui = 'bold' },
|
||||||
b = { bg = p.overlay, fg = p.iris },
|
b = { bg = p.overlay, fg = p.iris },
|
||||||
c = { bg = bg_base, fg = p.text },
|
c = { bg = p.base, fg = p.text },
|
||||||
},
|
},
|
||||||
replace = {
|
replace = {
|
||||||
a = { bg = p.pine, fg = p.base, gui = "bold" },
|
a = { bg = p.pine, fg = p.base, gui = 'bold' },
|
||||||
b = { bg = p.overlay, fg = p.pine },
|
b = { bg = p.overlay, fg = p.pine },
|
||||||
c = { bg = bg_base, fg = p.text },
|
c = { bg = p.base, fg = p.text },
|
||||||
},
|
},
|
||||||
command = {
|
command = {
|
||||||
a = { bg = p.love, fg = p.base, gui = "bold" },
|
a = { bg = p.love, fg = p.base, gui = 'bold' },
|
||||||
b = { bg = p.overlay, fg = p.love },
|
b = { bg = p.overlay, fg = p.love },
|
||||||
c = { bg = bg_base, fg = p.text },
|
c = { bg = p.base, fg = p.text },
|
||||||
},
|
},
|
||||||
inactive = {
|
inactive = {
|
||||||
a = { bg = bg_base, fg = p.muted, gui = "bold" },
|
a = { bg = p.base, fg = p.muted, gui = 'bold' },
|
||||||
b = { bg = bg_base, fg = p.muted },
|
b = { bg = p.base, fg = p.muted },
|
||||||
c = { bg = bg_base, fg = p.muted },
|
c = { bg = p.base, fg = p.muted },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1242
lua/rose-pine.lua
1242
lua/rose-pine.lua
File diff suppressed because it is too large
Load diff
23
lua/rose-pine/bufferline/init.lua
Normal file
23
lua/rose-pine/bufferline/init.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -1,176 +1,74 @@
|
||||||
---@alias Variant "main" | "moon" | "dawn"
|
local palette = require('rose-pine.palette')
|
||||||
---@alias Palette { base: string, surface: string, overlay: string, muted: string, subtle: string, text: string, love: string, gold: string, rose: string, pine: string, foam: string, iris: string }
|
|
||||||
---@alias PaletteColor "base" | "surface" | "overlay" | "muted" | "subtle" | "text" | "love" | "gold" | "rose" | "pine" | "foam" | "iris" | "highlight_low" | "highlight_med" | "highlight_high"
|
|
||||||
---@alias Highlight { link: string, inherit: boolean } | { fg: string, bg: string, sp: string, bold: boolean, italic: boolean, undercurl: boolean, underline: boolean, underdouble: boolean, underdotted: boolean, underdashed: boolean, strikethrough: boolean, inherit: boolean }
|
|
||||||
|
|
||||||
local config = {}
|
local function opt(key, default)
|
||||||
|
key = 'rose_pine_' .. key
|
||||||
|
|
||||||
---@class Options
|
if vim.g[key] == nil then
|
||||||
config.options = {
|
return default
|
||||||
---Set the desired variant: "auto" will follow the vim background,
|
end
|
||||||
---defaulting to `dark_variant` or "main" for dark and "dawn" for light.
|
|
||||||
---@type "auto" | Variant
|
|
||||||
variant = "auto",
|
|
||||||
|
|
||||||
---Set the desired dark variant when `options.variant` is set to "auto".
|
if vim.g[key] == 0 or vim.g[key] == false then
|
||||||
---@type Variant
|
return false
|
||||||
dark_variant = "main",
|
end
|
||||||
|
|
||||||
---Differentiate between active and inactive windows and panels.
|
return vim.g[key]
|
||||||
dim_inactive_windows = false,
|
end
|
||||||
|
|
||||||
---Extend background behind borders. Appearance differs based on which
|
local config = {
|
||||||
---border characters you are using.
|
variant = opt('variant', 'main'),
|
||||||
extend_background_behind_borders = true,
|
|
||||||
|
|
||||||
enable = {
|
bold_vertical_split_line = opt('bold_vertical_split_line', false),
|
||||||
legacy_highlights = true,
|
disable_italics = opt('disable_italics', false),
|
||||||
migrations = true,
|
disable_background = opt('disable_background', false),
|
||||||
terminal = true,
|
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<string, string>
|
||||||
|
headings = {
|
||||||
|
h1 = palette.iris,
|
||||||
|
h2 = palette.foam,
|
||||||
|
h3 = palette.rose,
|
||||||
|
h4 = palette.gold,
|
||||||
|
h5 = palette.pine,
|
||||||
|
h6 = palette.foam,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
styles = {
|
|
||||||
bold = true,
|
|
||||||
italic = true,
|
|
||||||
transparency = false,
|
|
||||||
},
|
|
||||||
|
|
||||||
---@type table<string, table<string, string>>
|
|
||||||
palette = {},
|
|
||||||
|
|
||||||
---@type table<string, string | PaletteColor>
|
|
||||||
groups = {
|
|
||||||
border = "muted",
|
|
||||||
link = "iris",
|
|
||||||
panel = "surface",
|
|
||||||
|
|
||||||
error = "love",
|
|
||||||
hint = "iris",
|
|
||||||
info = "foam",
|
|
||||||
ok = "leaf",
|
|
||||||
warn = "gold",
|
|
||||||
note = "pine",
|
|
||||||
todo = "rose",
|
|
||||||
|
|
||||||
git_add = "foam",
|
|
||||||
git_change = "rose",
|
|
||||||
git_delete = "love",
|
|
||||||
git_dirty = "rose",
|
|
||||||
git_ignore = "muted",
|
|
||||||
git_merge = "iris",
|
|
||||||
git_rename = "pine",
|
|
||||||
git_stage = "iris",
|
|
||||||
git_text = "rose",
|
|
||||||
git_untracked = "subtle",
|
|
||||||
|
|
||||||
---@type string | PaletteColor
|
|
||||||
h1 = "iris",
|
|
||||||
h2 = "foam",
|
|
||||||
h3 = "rose",
|
|
||||||
h4 = "gold",
|
|
||||||
h5 = "pine",
|
|
||||||
h6 = "leaf",
|
|
||||||
|
|
||||||
---@deprecated Replaced by `options.highlight_groups["Normal"]`
|
|
||||||
-- background = "base",
|
|
||||||
---@deprecated Replaced by `options.highlight_groups["Comment"]`
|
|
||||||
-- comment = "subtle",
|
|
||||||
---@deprecated Replaced by `options.highlight_groups["@punctuation"]`
|
|
||||||
-- punctuation = "muted",
|
|
||||||
---@deprecated Expects a table with values h1...h6
|
|
||||||
-- headings = "text",
|
|
||||||
},
|
|
||||||
|
|
||||||
---@type table<string, Highlight>
|
|
||||||
highlight_groups = {},
|
|
||||||
|
|
||||||
---Called before each highlight group, before setting the highlight.
|
|
||||||
---@param group string
|
|
||||||
---@param highlight Highlight
|
|
||||||
---@param palette Palette
|
|
||||||
---@diagnostic disable-next-line: unused-local
|
|
||||||
before_highlight = function(group, highlight, palette) end,
|
|
||||||
|
|
||||||
---@deprecated Replaced by `options.dim_inactive_windows`
|
|
||||||
-- dim_nc_background = false,
|
|
||||||
---@deprecated Replaced by `options.enable.transparency`
|
|
||||||
-- disable_background = false,
|
|
||||||
---@deprecated Replaced by `options.highlight_groups["NormalFloat"]`
|
|
||||||
-- disable_float_background = false,
|
|
||||||
---@deprecated Replaced by `options.styles.italic`
|
|
||||||
-- disable_italics = false,
|
|
||||||
---@deprecated Replaced by `options.highlight_groups`
|
|
||||||
-- bold_vert_split = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local function migrate(options)
|
local colors = vim.g.rose_pine_colors or {}
|
||||||
if options.bold_vert_split then
|
|
||||||
local border = options.groups.border or "muted"
|
|
||||||
options.highlight_groups["VertSplit"] = { fg = border, bg = border }
|
|
||||||
options.highlight_groups["WinSeparator"] = { fg = border, bg = border }
|
|
||||||
end
|
|
||||||
|
|
||||||
if options.disable_background then
|
if type(colors.headings) == 'string' then
|
||||||
options.highlight_groups["Normal"] = { bg = "NONE" }
|
colors.headings = {
|
||||||
end
|
h1 = colors.headings,
|
||||||
|
h2 = colors.headings,
|
||||||
if options.disable_float_background then
|
h3 = colors.headings,
|
||||||
options.highlight_groups["NormalFloat"] = { bg = "NONE" }
|
h4 = colors.headings,
|
||||||
end
|
h5 = colors.headings,
|
||||||
|
h6 = colors.headings,
|
||||||
options.dim_inactive_windows = options.dim_nc_background or options.dim_inactive_windows
|
}
|
||||||
|
|
||||||
if options.groups.background ~= nil then
|
|
||||||
options.highlight_groups["Normal"] = { bg = options.groups.background }
|
|
||||||
end
|
|
||||||
|
|
||||||
if options.groups.comment ~= nil then
|
|
||||||
options.highlight_groups["Comment"] = { fg = options.groups.comment }
|
|
||||||
end
|
|
||||||
|
|
||||||
if options.groups.punctuation ~= nil then
|
|
||||||
options.highlight_groups["@punctuation"] = { fg = options.groups.punctuation }
|
|
||||||
end
|
|
||||||
|
|
||||||
options.styles.transparency = (options.disable_background and options.disable_float_background)
|
|
||||||
or options.styles.transparency
|
|
||||||
|
|
||||||
-- These never actually existed, but may be set intuitively by the user
|
|
||||||
-- because of `disable_italics` existing.
|
|
||||||
options.styles.bold = not (options.disable_bold or options.disable_bolds) and options.styles.bold or false
|
|
||||||
|
|
||||||
-- Similar to bold options, `disable_italic` never existed but could be a
|
|
||||||
-- common typo of the actual `disable_italics`.
|
|
||||||
options.styles.italic = not (options.disable_italic or options.disable_italics) and options.styles.italic or false
|
|
||||||
|
|
||||||
-- Set h1 through h6 to the same color if only one is specified
|
|
||||||
if type(options.groups.headings) == "string" then
|
|
||||||
options.groups.h1 = options.groups.headings
|
|
||||||
options.groups.h2 = options.groups.headings
|
|
||||||
options.groups.h3 = options.groups.headings
|
|
||||||
options.groups.h4 = options.groups.headings
|
|
||||||
options.groups.h5 = options.groups.headings
|
|
||||||
options.groups.h6 = options.groups.headings
|
|
||||||
elseif options.groups.headings == "table" then
|
|
||||||
options.groups.h1 = options.groups.headings.h1 or options.groups.h1
|
|
||||||
options.groups.h2 = options.groups.headings.h2 or options.groups.h2
|
|
||||||
options.groups.h3 = options.groups.headings.h3 or options.groups.h3
|
|
||||||
options.groups.h4 = options.groups.headings.h4 or options.groups.h4
|
|
||||||
options.groups.h5 = options.groups.headings.h5 or options.groups.h5
|
|
||||||
options.groups.h6 = options.groups.headings.h6 or options.groups.h6
|
|
||||||
end
|
|
||||||
options.groups.headings = nil
|
|
||||||
|
|
||||||
return options
|
|
||||||
end
|
end
|
||||||
|
|
||||||
---@param options Options | nil
|
config.colors = vim.tbl_deep_extend('force', config.colors, colors)
|
||||||
function config.extend_options(options)
|
|
||||||
config.options = vim.tbl_deep_extend("force", config.options, options or {})
|
|
||||||
|
|
||||||
if config.options.enable.migrations then
|
|
||||||
config.options = migrate(config.options)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|
|
||||||
19
lua/rose-pine/galaxyline/theme.lua
Normal file
19
lua/rose-pine/galaxyline/theme.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
local present, galaxyline_colors = pcall(require, 'galaxyline.themes.colors')
|
||||||
|
if not present then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local palette = 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,
|
||||||
|
}
|
||||||
63
lua/rose-pine/init.lua
Normal file
63
lua/rose-pine/init.lua
Normal file
|
|
@ -0,0 +1,63 @@
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
function M.colorscheme()
|
||||||
|
if vim.g.colors_name then
|
||||||
|
vim.cmd('hi clear')
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.opt.termguicolors = true
|
||||||
|
vim.g.colors_name = 'rose-pine'
|
||||||
|
|
||||||
|
-- Match terminal theme if no variant is set
|
||||||
|
if vim.g.rose_pine_variant == nil and vim.o.background == 'light' then
|
||||||
|
vim.g.rose_pine_variant = 'dawn'
|
||||||
|
elseif vim.g.rose_pine_variant == 'dawn' then
|
||||||
|
vim.o.background = 'light'
|
||||||
|
end
|
||||||
|
|
||||||
|
---@param group string
|
||||||
|
---@param color table<string, string>
|
||||||
|
local function highlight(group, color)
|
||||||
|
local style = color.style and 'gui=' .. color.style or 'gui=NONE'
|
||||||
|
local fg = color.fg and 'guifg=' .. color.fg or 'guifg=NONE'
|
||||||
|
local bg = color.bg and 'guibg=' .. color.bg or 'guibg=NONE'
|
||||||
|
local sp = color.sp and 'guisp=' .. color.sp or ''
|
||||||
|
|
||||||
|
local hl = 'highlight ' .. group .. ' ' .. style .. ' ' .. fg .. ' ' .. bg .. ' ' .. sp
|
||||||
|
|
||||||
|
vim.cmd(hl)
|
||||||
|
if color.link then
|
||||||
|
vim.cmd('highlight! link ' .. group .. ' ' .. color.link)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for group, colors in pairs(require('rose-pine.theme')) do
|
||||||
|
highlight(group, colors)
|
||||||
|
end
|
||||||
|
|
||||||
|
require('rose-pine.galaxyline.theme')
|
||||||
|
end
|
||||||
|
|
||||||
|
function M.set(variant)
|
||||||
|
vim.g.rose_pine_variant = variant
|
||||||
|
vim.cmd('colorscheme rose-pine')
|
||||||
|
end
|
||||||
|
|
||||||
|
function M.toggle(variants)
|
||||||
|
variants = variants or { 'main', 'moon', 'dawn' }
|
||||||
|
|
||||||
|
local index = {}
|
||||||
|
for k, v in pairs(variants) do
|
||||||
|
index[v] = k
|
||||||
|
end
|
||||||
|
|
||||||
|
if vim.g.rose_pine_current_variant == nil then
|
||||||
|
vim.g.rose_pine_current_variant = index[vim.g.rose_pine_variant] or 0
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.g.rose_pine_current_variant = (vim.g.rose_pine_current_variant % #variants) + 1
|
||||||
|
|
||||||
|
M.set(variants[vim.g.rose_pine_current_variant])
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
|
@ -1,78 +1,68 @@
|
||||||
local options = require("rose-pine.config").options
|
|
||||||
local variants = {
|
local variants = {
|
||||||
main = {
|
main = {
|
||||||
_nc = "#16141f",
|
base = '#191724',
|
||||||
base = "#191724",
|
surface = '#1f1d2e',
|
||||||
surface = "#1f1d2e",
|
overlay = '#26233a',
|
||||||
overlay = "#26233a",
|
muted = '#6e6a86',
|
||||||
muted = "#6e6a86",
|
subtle = '#908caa',
|
||||||
subtle = "#908caa",
|
text = '#e0def4',
|
||||||
text = "#e0def4",
|
love = '#eb6f92',
|
||||||
love = "#eb6f92",
|
gold = '#f6c177',
|
||||||
gold = "#f6c177",
|
rose = '#ebbcba',
|
||||||
rose = "#ebbcba",
|
pine = '#31748f',
|
||||||
pine = "#31748f",
|
foam = '#9ccfd8',
|
||||||
foam = "#9ccfd8",
|
iris = '#c4a7e7',
|
||||||
iris = "#c4a7e7",
|
highlight_low = '#21202e',
|
||||||
leaf = "#95b1ac",
|
highlight_med = '#403d52',
|
||||||
highlight_low = "#21202e",
|
highlight_high = '#524f67',
|
||||||
highlight_med = "#403d52",
|
opacity = 0.1,
|
||||||
highlight_high = "#524f67",
|
|
||||||
none = "NONE",
|
|
||||||
},
|
},
|
||||||
moon = {
|
moon = {
|
||||||
_nc = "#1f1d30",
|
base = '#232136',
|
||||||
base = "#232136",
|
surface = '#2a273f',
|
||||||
surface = "#2a273f",
|
overlay = '#393552',
|
||||||
overlay = "#393552",
|
muted = '#6e6a86',
|
||||||
muted = "#6e6a86",
|
subtle = '#908caa',
|
||||||
subtle = "#908caa",
|
text = '#e0def4',
|
||||||
text = "#e0def4",
|
love = '#eb6f92',
|
||||||
love = "#eb6f92",
|
gold = '#f6c177',
|
||||||
gold = "#f6c177",
|
rose = '#ea9a97',
|
||||||
rose = "#ea9a97",
|
pine = '#3e8fb0',
|
||||||
pine = "#3e8fb0",
|
foam = '#9ccfd8',
|
||||||
foam = "#9ccfd8",
|
iris = '#c4a7e7',
|
||||||
iris = "#c4a7e7",
|
highlight_low = '#2a283e',
|
||||||
leaf = "#95b1ac",
|
highlight_med = '#44415a',
|
||||||
highlight_low = "#2a283e",
|
highlight_high = '#56526e',
|
||||||
highlight_med = "#44415a",
|
opacity = 0.1,
|
||||||
highlight_high = "#56526e",
|
|
||||||
none = "NONE",
|
|
||||||
},
|
},
|
||||||
dawn = {
|
dawn = {
|
||||||
_nc = "#f8f0e7",
|
base = '#faf4ed',
|
||||||
base = "#faf4ed",
|
surface = '#fffaf3',
|
||||||
surface = "#fffaf3",
|
overlay = '#f2e9e1',
|
||||||
overlay = "#f2e9e1",
|
muted = '#9893a5',
|
||||||
muted = "#9893a5",
|
subtle = '#797593',
|
||||||
subtle = "#797593",
|
text = '#575279',
|
||||||
text = "#464261",
|
love = '#b4637a',
|
||||||
love = "#b4637a",
|
gold = '#ea9d34',
|
||||||
gold = "#ea9d34",
|
rose = '#d7827e',
|
||||||
rose = "#d7827e",
|
pine = '#286983',
|
||||||
pine = "#286983",
|
foam = '#56949f',
|
||||||
foam = "#56949f",
|
iris = '#907aa9',
|
||||||
iris = "#907aa9",
|
highlight_low = '#f4ede8',
|
||||||
leaf = "#6d8f89",
|
highlight_med = '#dfdad9',
|
||||||
highlight_low = "#f4ede8",
|
highlight_high = '#cecacd',
|
||||||
highlight_med = "#dfdad9",
|
opacity = 0.05,
|
||||||
highlight_high = "#cecacd",
|
|
||||||
none = "NONE",
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if options.palette ~= nil and next(options.palette) then
|
local palette = variants.main
|
||||||
-- handle variant specific overrides
|
|
||||||
for variant_name, override_palette in pairs(options.palette) do
|
if string.match(vim.g.rose_pine_variant or '', 'moon') then
|
||||||
if variants[variant_name] then
|
palette = variants.moon
|
||||||
variants[variant_name] = vim.tbl_extend("force", variants[variant_name], override_palette or {})
|
elseif string.match(vim.g.rose_pine_variant or '', 'dawn') then
|
||||||
end
|
palette = variants.dawn
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if variants[options.variant] ~= nil then
|
vim.tbl_deep_extend('force', palette, { none = 'NONE' })
|
||||||
return variants[options.variant]
|
|
||||||
end
|
|
||||||
|
|
||||||
return vim.o.background == "light" and variants.dawn or variants[options.dark_variant or "main"]
|
return palette
|
||||||
|
|
|
||||||
|
|
@ -1,223 +0,0 @@
|
||||||
--- Rosé Pine for bufferline
|
|
||||||
--- https://github.com/akinsho/bufferline.nvim
|
|
||||||
---
|
|
||||||
--- @usage
|
|
||||||
--- local highlights = require("rose-pine.plugins.bufferline")
|
|
||||||
--- require("bufferline").setup({ highlights = highlights })
|
|
||||||
|
|
||||||
local p = require("rose-pine.palette")
|
|
||||||
|
|
||||||
return {
|
|
||||||
-- fill = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- background = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- tab = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
tab_selected = {
|
|
||||||
fg = p.text,
|
|
||||||
bg = p.overlay,
|
|
||||||
},
|
|
||||||
-- tab_close = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- close_button = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- close_button_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- close_button_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
buffer_visible = {
|
|
||||||
fg = p.subtle,
|
|
||||||
bg = p.base,
|
|
||||||
},
|
|
||||||
buffer_selected = {
|
|
||||||
fg = p.text,
|
|
||||||
bg = p.surface,
|
|
||||||
bold = true,
|
|
||||||
italic = true,
|
|
||||||
},
|
|
||||||
-- diagnostic = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- diagnostic_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- diagnostic_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- bold = true,
|
|
||||||
-- italic = true,
|
|
||||||
-- },
|
|
||||||
-- info = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- info_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- info_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- bold = true,
|
|
||||||
-- italic = true,
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- info_diagnostic = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- info_diagnostic_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- info_diagnostic_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- bold = true,
|
|
||||||
-- italic = true,
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- warning = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- warning_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- warning_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- bold = true,
|
|
||||||
-- italic = true,
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- warning_diagnostic = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- warning_diagnostic_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- warning_diagnostic_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- bold = true,
|
|
||||||
-- italic = true,
|
|
||||||
-- sp = warning_diagnostic_fg,
|
|
||||||
-- },
|
|
||||||
-- error = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- error_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- error_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- bold = true,
|
|
||||||
-- italic = true,
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- error_diagnostic = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- error_diagnostic_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- error_diagnostic_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- bold = true,
|
|
||||||
-- italic = true,
|
|
||||||
-- sp = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- modified = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- modified_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- modified_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- duplicate_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- italic = true,
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- duplicate_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- italic = true,
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- duplicate = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- italic = true,
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- separator_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- separator_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- separator = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- indicator_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- },
|
|
||||||
-- pick_selected = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- italic = true,
|
|
||||||
-- },
|
|
||||||
-- pick_visible = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- bold = true,
|
|
||||||
-- italic = true,
|
|
||||||
-- },
|
|
||||||
-- pick = {
|
|
||||||
-- fg = "<color-value-here>",
|
|
||||||
-- bg = "<color-value-here>",
|
|
||||||
-- bold = true,
|
|
||||||
-- italic = true,
|
|
||||||
-- },
|
|
||||||
}
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
--- Rosé Pine for galaxyline fork
|
|
||||||
--- https://github.com/NTBBloodbath/galaxyline.nvim
|
|
||||||
---
|
|
||||||
--- @usage
|
|
||||||
--- local highlights = require("rose-pine.plugins.galaxyline")
|
|
||||||
|
|
||||||
local p = require("rose-pine.palette")
|
|
||||||
|
|
||||||
return {
|
|
||||||
bg = p.surface,
|
|
||||||
fg = p.text,
|
|
||||||
fg_alt = p.subtle,
|
|
||||||
yellow = p.gold,
|
|
||||||
cyan = p.rose,
|
|
||||||
green = p.pine,
|
|
||||||
orange = p.muted,
|
|
||||||
magenta = p.iris,
|
|
||||||
blue = p.foam,
|
|
||||||
red = p.love,
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
--- Rosé Pine for markid
|
|
||||||
--- https://github.com/David-Kunz/markid
|
|
||||||
---
|
|
||||||
--- @usage
|
|
||||||
--- local highlights = require("rose-pine.plugins.markid")
|
|
||||||
--- require("nvim-treesitter.configs").setup({ markid = { enable = true, colors = highlights } })
|
|
||||||
|
|
||||||
local p = require("rose-pine.palette")
|
|
||||||
|
|
||||||
return { p.foam, p.rose, p.iris }
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
--- Rosé Pine for Obsidian(epwalsh)
|
|
||||||
--- https://github.com/epwalsh/obsidian.nvim
|
|
||||||
---
|
|
||||||
--- @usage
|
|
||||||
--- local highlights = require("rose-pine.plugins.obsidian")
|
|
||||||
--- require("obsidian").setup({ ui = {hl_groups = highlights} })
|
|
||||||
|
|
||||||
local p = require("rose-pine.palette")
|
|
||||||
|
|
||||||
return {
|
|
||||||
ObsidianBullet = { fg = p.muted },
|
|
||||||
ObsidianRefText = { underline = true, fg = p.iris },
|
|
||||||
ObsidianDone = { bold = true, fg = p.foam }
|
|
||||||
}
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
--- Rosé Pine for toggleterm
|
|
||||||
--- https://github.com/akinsho/toggleterm.nvim
|
|
||||||
---
|
|
||||||
--- @usage
|
|
||||||
--- local highlights = require("rose-pine.plugins.toggleterm")
|
|
||||||
--- require("toggleterm").setup({ highlights = highlights })
|
|
||||||
|
|
||||||
return {
|
|
||||||
Normal = { link = "Normal" },
|
|
||||||
NormalFloat = { link = "Normal" },
|
|
||||||
FloatBorder = { link = "FloatBorder" },
|
|
||||||
SignColumn = { link = "SignColumn" },
|
|
||||||
StatusLine = { link = "StatusLine" },
|
|
||||||
StatusLineNC = { link = "StatusLineNC" },
|
|
||||||
}
|
|
||||||
460
lua/rose-pine/theme.lua
Normal file
460
lua/rose-pine/theme.lua
Normal file
|
|
@ -0,0 +1,460 @@
|
||||||
|
local palette = require('rose-pine.palette')
|
||||||
|
local config = require('rose-pine.config')
|
||||||
|
local util = require('rose-pine.util')
|
||||||
|
|
||||||
|
local group = config.colors
|
||||||
|
|
||||||
|
local maybe_italic = 'italic'
|
||||||
|
if config.disable_italics == true then
|
||||||
|
maybe_italic = nil
|
||||||
|
end
|
||||||
|
|
||||||
|
local background = palette.base
|
||||||
|
if config.disable_background then
|
||||||
|
background = palette.none
|
||||||
|
end
|
||||||
|
|
||||||
|
local float_background = palette.surface
|
||||||
|
if config.disable_float_background then
|
||||||
|
float_background = palette.none
|
||||||
|
end
|
||||||
|
|
||||||
|
local inactive_background = palette.none
|
||||||
|
if config.inactive_background then
|
||||||
|
inactive_background = util.blend('#000000', palette.base, palette.opacity)
|
||||||
|
end
|
||||||
|
|
||||||
|
local vert_split_background = palette.none
|
||||||
|
if config.bold_vertical_split_line then
|
||||||
|
vert_split_background = palette.overlay
|
||||||
|
end
|
||||||
|
|
||||||
|
local theme = {
|
||||||
|
ColorColumn = { bg = palette.highlight_high },
|
||||||
|
Conceal = { bg = palette.none },
|
||||||
|
-- Cursor = {},
|
||||||
|
CursorColumn = { bg = palette.overlay },
|
||||||
|
-- CursorIM = {},
|
||||||
|
CursorLine = { bg = palette.overlay },
|
||||||
|
CursorLineNr = { fg = palette.text },
|
||||||
|
DarkenedPanel = { bg = palette.surface },
|
||||||
|
DarkenedStatusline = { bg = palette.surface },
|
||||||
|
DiffAdd = { bg = util.blend(group.git_add, palette.base, 0.5) },
|
||||||
|
DiffChange = { bg = palette.overlay },
|
||||||
|
DiffDelete = { bg = util.blend(group.git_delete, palette.base, 0.5) },
|
||||||
|
DiffText = { bg = util.blend(group.git_text, palette.base, 0.5) },
|
||||||
|
diffAdded = { link = 'DiffAdd' },
|
||||||
|
diffChanged = { link = 'DiffChange' },
|
||||||
|
diffRemoved = { link = 'DiffDelete' },
|
||||||
|
Directory = { fg = palette.foam, bg = palette.none },
|
||||||
|
-- EndOfBuffer = {},
|
||||||
|
ErrorMsg = { fg = palette.love, style = 'bold' },
|
||||||
|
FloatBorder = { fg = group.border },
|
||||||
|
FoldColumn = { fg = palette.muted },
|
||||||
|
Folded = { fg = palette.text, bg = palette.surface },
|
||||||
|
IncSearch = { fg = palette.base, bg = palette.rose },
|
||||||
|
LineNr = { fg = palette.muted },
|
||||||
|
MatchParen = { fg = palette.text, bg = palette.highlight_med },
|
||||||
|
ModeMsg = { fg = palette.subtle },
|
||||||
|
MoreMsg = { fg = palette.iris },
|
||||||
|
NonText = { fg = palette.muted },
|
||||||
|
Normal = { fg = palette.text, bg = background },
|
||||||
|
NormalFloat = { fg = palette.text, bg = float_background },
|
||||||
|
NormalNC = { fg = palette.text, bg = inactive_background },
|
||||||
|
NvimInternalError = { fg = '#ffffff', bg = palette.love },
|
||||||
|
Pmenu = { fg = palette.subtle, bg = float_background },
|
||||||
|
PmenuSbar = { bg = palette.highlight_low },
|
||||||
|
PmenuSel = { fg = palette.text, bg = palette.overlay },
|
||||||
|
PmenuThumb = { bg = palette.highlight_med },
|
||||||
|
Question = { fg = palette.gold },
|
||||||
|
-- QuickFixLine = {},
|
||||||
|
-- RedrawDebugNormal = {}
|
||||||
|
RedrawDebugClear = { fg = '#ffffff', bg = palette.gold },
|
||||||
|
RedrawDebugComposed = { fg = '#ffffff', bg = palette.pine },
|
||||||
|
RedrawDebugRecompose = { fg = '#ffffff', bg = palette.love },
|
||||||
|
Search = { bg = palette.highlight_med },
|
||||||
|
SpecialKey = { fg = palette.foam },
|
||||||
|
SpellBad = { sp = palette.love, style = 'undercurl' },
|
||||||
|
SpellCap = { sp = palette.subtle, style = 'undercurl' },
|
||||||
|
SpellLocal = { sp = palette.subtle, style = 'undercurl' },
|
||||||
|
SpellRare = { sp = palette.subtle, style = 'undercurl' },
|
||||||
|
SignColumn = { fg = palette.text, bg = background },
|
||||||
|
StatusLine = { fg = palette.subtle, bg = palette.surface },
|
||||||
|
StatusLineNC = { fg = palette.muted, bg = palette.base },
|
||||||
|
StatusLineTerm = { link = 'StatusLine' },
|
||||||
|
StatusLineTermNC = { link = 'StatusLineNC' },
|
||||||
|
TabLine = { fg = palette.subtle, bg = palette.surface },
|
||||||
|
TabLineFill = { bg = palette.surface },
|
||||||
|
TabLineSel = { fg = palette.text, bg = palette.overlay },
|
||||||
|
Title = { fg = palette.text },
|
||||||
|
VertSplit = { fg = palette.overlay, bg = vert_split_background },
|
||||||
|
Visual = { bg = palette.highlight_med },
|
||||||
|
-- VisualNOS = {},
|
||||||
|
WarningMsg = { fg = palette.gold },
|
||||||
|
-- Whitespace = {},
|
||||||
|
-- WildMenu = {},
|
||||||
|
|
||||||
|
Boolean = { fg = palette.rose },
|
||||||
|
Character = { fg = palette.gold },
|
||||||
|
Comment = { fg = group.comment, style = maybe_italic },
|
||||||
|
Conditional = { fg = palette.pine },
|
||||||
|
Constant = { fg = palette.gold },
|
||||||
|
Debug = { fg = palette.rose },
|
||||||
|
Define = { fg = palette.iris },
|
||||||
|
Delimiter = { fg = palette.subtle },
|
||||||
|
Error = { fg = palette.love },
|
||||||
|
Exception = { fg = palette.pine },
|
||||||
|
Float = { fg = palette.gold },
|
||||||
|
Function = { fg = palette.rose },
|
||||||
|
Identifier = { fg = palette.rose },
|
||||||
|
-- Ignore = {},
|
||||||
|
Include = { fg = palette.iris },
|
||||||
|
Keyword = { fg = palette.pine },
|
||||||
|
Label = { fg = palette.foam },
|
||||||
|
Macro = { fg = palette.iris },
|
||||||
|
Number = { fg = palette.gold },
|
||||||
|
Operator = { fg = palette.subtle },
|
||||||
|
PreCondit = { fg = palette.iris },
|
||||||
|
PreProc = { fg = palette.iris },
|
||||||
|
Repeat = { fg = palette.pine },
|
||||||
|
Special = { fg = palette.rose },
|
||||||
|
SpecialChar = { fg = palette.rose },
|
||||||
|
SpecialComment = { fg = palette.iris },
|
||||||
|
Statement = { fg = palette.pine },
|
||||||
|
StorageClass = { fg = palette.foam },
|
||||||
|
String = { fg = palette.gold },
|
||||||
|
Structure = { fg = palette.foam },
|
||||||
|
Tag = { fg = palette.rose },
|
||||||
|
Todo = { fg = palette.iris },
|
||||||
|
Type = { fg = palette.foam },
|
||||||
|
Typedef = { fg = palette.foam },
|
||||||
|
Underlined = { style = 'underline' },
|
||||||
|
|
||||||
|
htmlArg = { fg = palette.iris },
|
||||||
|
htmlBold = { style = 'bold' },
|
||||||
|
htmlEndTag = { fg = palette.subtle },
|
||||||
|
htmlH1 = { fg = group.headings.h1, style = 'bold' },
|
||||||
|
htmlH2 = { fg = group.headings.h2, style = 'bold' },
|
||||||
|
htmlH3 = { fg = group.headings.h3, style = 'bold' },
|
||||||
|
htmlH4 = { fg = group.headings.h4, style = 'bold' },
|
||||||
|
htmlH5 = { fg = group.headings.h5, style = 'bold' },
|
||||||
|
htmlItalic = { style = maybe_italic },
|
||||||
|
htmlLink = { fg = group.link },
|
||||||
|
htmlTag = { fg = palette.subtle },
|
||||||
|
htmlTagN = { fg = palette.text },
|
||||||
|
htmlTagName = { fg = palette.foam },
|
||||||
|
|
||||||
|
markdownDelimiter = { fg = palette.subtle },
|
||||||
|
markdownH1 = { fg = group.headings.h1, style = 'bold' },
|
||||||
|
markdownH1Delimiter = { link = 'markdownH1' },
|
||||||
|
markdownH2 = { fg = group.headings.h2, style = 'bold' },
|
||||||
|
markdownH2Delimiter = { link = 'markdownH2' },
|
||||||
|
markdownH3 = { fg = group.headings.h3, style = 'bold' },
|
||||||
|
markdownH3Delimiter = { link = 'markdownH3' },
|
||||||
|
markdownH4 = { fg = group.headings.h4, style = 'bold' },
|
||||||
|
markdownH4Delimiter = { link = 'markdownH4' },
|
||||||
|
markdownH5 = { fg = group.headings.h5, style = 'bold' },
|
||||||
|
markdownH5Delimiter = { link = 'markdownH5' },
|
||||||
|
markdownH6 = { fg = group.headings.h6, style = 'bold' },
|
||||||
|
markdownH6Delimiter = { link = 'markdownH6' },
|
||||||
|
markdownLinkText = { fg = group.link, style = 'underline' },
|
||||||
|
markdownUrl = { link = 'markdownLinkText' },
|
||||||
|
|
||||||
|
mkdCode = { fg = palette.foam, style = maybe_italic },
|
||||||
|
mkdCodeDelimiter = { fg = palette.rose },
|
||||||
|
mkdCodeEnd = { fg = palette.foam },
|
||||||
|
mkdCodeStart = { fg = palette.foam },
|
||||||
|
mkdFootnotes = { fg = palette.foam },
|
||||||
|
mkdID = { fg = palette.foam, style = 'underline' },
|
||||||
|
mkdInlineURL = { fg = group.link, style = 'underline' },
|
||||||
|
mkdLink = { link = 'mkdInlineURL' },
|
||||||
|
mkdLinkDef = { link = 'mkdInlineURL' },
|
||||||
|
mkdListItemLine = { fg = palette.text },
|
||||||
|
mkdRule = { fg = palette.subtle },
|
||||||
|
mkdURL = { link = 'mkdInlineURL' },
|
||||||
|
|
||||||
|
DiagnosticError = { fg = group.error },
|
||||||
|
DiagnosticHint = { fg = group.hint },
|
||||||
|
DiagnosticInfo = { fg = group.info },
|
||||||
|
DiagnosticWarn = { fg = group.warn },
|
||||||
|
DiagnosticDefaultError = { fg = group.error },
|
||||||
|
DiagnosticDefaultHint = { fg = group.hint },
|
||||||
|
DiagnosticDefaultInfo = { fg = group.info },
|
||||||
|
DiagnosticDefaultWarn = { fg = group.warn },
|
||||||
|
DiagnosticFloatingError = { fg = group.error },
|
||||||
|
DiagnosticFloatingHint = { fg = group.hint },
|
||||||
|
DiagnosticFloatingInfo = { fg = group.info },
|
||||||
|
DiagnosticFloatingWarn = { fg = group.warn },
|
||||||
|
DiagnosticSignError = { fg = group.error },
|
||||||
|
DiagnosticSignHint = { fg = group.hint },
|
||||||
|
DiagnosticSignInfo = { fg = group.info },
|
||||||
|
DiagnosticSignWarn = { fg = group.warn },
|
||||||
|
DiagnosticUnderlineError = { sp = group.error, style = 'undercurl' },
|
||||||
|
DiagnosticUnderlineHint = { sp = group.hint, style = 'undercurl' },
|
||||||
|
DiagnosticUnderlineInfo = { sp = group.info, style = 'undercurl' },
|
||||||
|
DiagnosticUnderlineWarn = { sp = group.warn, style = 'undercurl' },
|
||||||
|
DiagnosticVirtualTextError = { fg = group.error },
|
||||||
|
DiagnosticVirtualTextHint = { fg = group.hint },
|
||||||
|
DiagnosticVirtualTextInfo = { fg = group.info },
|
||||||
|
DiagnosticVirtualTextWarn = { fg = group.warn },
|
||||||
|
|
||||||
|
LspReferenceText = { fg = palette.rose, bg = palette.highlight_med },
|
||||||
|
LspReferenceRead = { fg = palette.rose, bg = palette.highlight_med },
|
||||||
|
LspReferenceWrite = { fg = palette.rose, bg = palette.highlight_med },
|
||||||
|
|
||||||
|
-- TODO: Deprecate in favour of 0.6.0 groups
|
||||||
|
LspDiagnosticsSignWarning = { link = 'DiagnosticSignWarn' },
|
||||||
|
LspDiagnosticsDefaultWarning = { link = 'DiagnosticDefaultWarn' },
|
||||||
|
LspDiagnosticsFloatingWarning = { link = 'DiagnosticFloatingWarn' },
|
||||||
|
LspDiagnosticsVirtualTextWarning = { link = 'DiagnosticVirtualTextWarn' },
|
||||||
|
LspDiagnosticsUnderlineWarning = { link = 'DiagnosticUnderlineWarn' },
|
||||||
|
LspDiagnosticsSignHint = { link = 'DiagnosticSignHint' },
|
||||||
|
LspDiagnosticsDefaultHint = { link = 'DiagnosticDefaultHint' },
|
||||||
|
LspDiagnosticsVirtualTextHint = { link = 'DiagnosticFloatingHint' },
|
||||||
|
LspDiagnosticsFloatingHint = { link = 'DiagnosticVirtualTextHint' },
|
||||||
|
LspDiagnosticsUnderlineHint = { link = 'DiagnosticUnderlineHint' },
|
||||||
|
LspDiagnosticsSignError = { link = 'DiagnosticSignError' },
|
||||||
|
LspDiagnosticsDefaultError = { link = 'DiagnosticDefaultError' },
|
||||||
|
LspDiagnosticsFloatingError = { link = 'DiagnosticFloatingError' },
|
||||||
|
LspDiagnosticsVirtualTextError = { link = 'DiagnosticVirtualTextError' },
|
||||||
|
LspDiagnosticsUnderlineError = { link = 'DiagnosticUnderlineError' },
|
||||||
|
LspDiagnosticsSignInformation = { link = 'DiagnosticSignInfo' },
|
||||||
|
LspDiagnosticsDefaultInformation = { link = 'DiagnosticDefaultInfo' },
|
||||||
|
LspDiagnosticsFloatingInformation = { link = 'DiagnosticFloatingInfo' },
|
||||||
|
LspDiagnosticsVirtualTextInformation = { link = 'DiagnosticVirtualTextInfo' },
|
||||||
|
LspDiagnosticsUnderlineInformation = { link = 'DiagnosticUnderlineInfo' },
|
||||||
|
|
||||||
|
-- TSAttribute = {},
|
||||||
|
TSBoolean = { link = 'Boolean' },
|
||||||
|
TSCharacter = { link = 'Character' },
|
||||||
|
TSComment = { link = 'Comment' },
|
||||||
|
TSConditional = { link = 'Conditional' },
|
||||||
|
TSConstBuiltin = { fg = palette.love },
|
||||||
|
-- TSConstMacro = {},
|
||||||
|
TSConstant = { fg = palette.foam },
|
||||||
|
TSConstructor = { fg = palette.foam },
|
||||||
|
-- TSEmphasis = {},
|
||||||
|
-- TSError = {},
|
||||||
|
-- TSException = {},
|
||||||
|
TSField = { fg = palette.foam },
|
||||||
|
-- TSFloat = {},
|
||||||
|
TSFuncBuiltin = { fg = palette.love },
|
||||||
|
-- TSFuncMacro = {},
|
||||||
|
TSFunction = { fg = palette.rose },
|
||||||
|
TSInclude = { fg = palette.pine },
|
||||||
|
TSKeyword = { fg = palette.pine },
|
||||||
|
-- TSKeywordFunction = {},
|
||||||
|
TSKeywordOperator = { fg = palette.subtle },
|
||||||
|
TSLabel = { fg = palette.foam },
|
||||||
|
-- TSLiteral = {},
|
||||||
|
-- TSMethod = {},
|
||||||
|
-- TSNamespace = {},
|
||||||
|
-- TSNone = {},
|
||||||
|
TSNumber = { link = 'Number' },
|
||||||
|
TSOperator = { fg = palette.subtle },
|
||||||
|
TSParameter = { fg = palette.iris, style = maybe_italic },
|
||||||
|
-- TSParameterReference = {},
|
||||||
|
TSProperty = { fg = palette.iris, style = maybe_italic },
|
||||||
|
TSPunctBracket = { fg = group.punctuation },
|
||||||
|
TSPunctDelimiter = { fg = group.punctuation },
|
||||||
|
TSPunctSpecial = { fg = group.punctuation },
|
||||||
|
-- TSRepeat = {},
|
||||||
|
-- TSStrike = {},
|
||||||
|
TSString = { link = 'String' },
|
||||||
|
TSStringEscape = { fg = palette.pine },
|
||||||
|
-- TSStringRegex = {},
|
||||||
|
TSStringSpecial = { link = 'TSString' },
|
||||||
|
-- TSSymbol = {},
|
||||||
|
TSTag = { fg = palette.foam },
|
||||||
|
TSTagDelimiter = { fg = palette.subtle },
|
||||||
|
TSText = { fg = palette.text },
|
||||||
|
TSTitle = { fg = group.headings.h1, style = 'bold' },
|
||||||
|
TSType = { link = 'Type' },
|
||||||
|
-- TSTypeBuiltin = {},
|
||||||
|
TSURI = { fg = group.link },
|
||||||
|
-- TSUnderline = {},
|
||||||
|
TSVariable = { fg = palette.text, style = maybe_italic },
|
||||||
|
TSVariableBuiltin = { fg = palette.love },
|
||||||
|
|
||||||
|
-- romgrk/barbar.nvim
|
||||||
|
BufferCurrent = { fg = palette.text, bg = palette.overlay },
|
||||||
|
BufferCurrentIndex = { fg = palette.text, bg = palette.overlay },
|
||||||
|
BufferCurrentMod = { fg = palette.foam, bg = palette.overlay },
|
||||||
|
BufferCurrentSign = { fg = palette.subtle, bg = palette.overlay },
|
||||||
|
BufferCurrentTarget = { fg = palette.gold, bg = palette.overlay },
|
||||||
|
BufferInactive = { fg = palette.subtle },
|
||||||
|
BufferInactiveIndex = { fg = palette.subtle },
|
||||||
|
BufferInactiveMod = { fg = palette.foam },
|
||||||
|
BufferInactiveSign = { fg = palette.muted },
|
||||||
|
BufferInactiveTarget = { fg = palette.gold },
|
||||||
|
BufferTabpageFill = { fg = palette.base, bg = palette.base },
|
||||||
|
BufferVisible = { fg = palette.subtle },
|
||||||
|
BufferVisibleIndex = { fg = palette.subtle },
|
||||||
|
BufferVisibleMod = { fg = palette.foam },
|
||||||
|
BufferVisibleSign = { fg = palette.muted },
|
||||||
|
BufferVisibleTarget = { fg = palette.gold },
|
||||||
|
|
||||||
|
-- lewis6991/gitsigns.nvim
|
||||||
|
GitSignsAdd = { fg = group.git_add },
|
||||||
|
GitSignsChange = { fg = group.git_change },
|
||||||
|
GitSignsDelete = { fg = group.git_delete },
|
||||||
|
SignAdd = { link = 'GitSignsAdd' },
|
||||||
|
SignChange = { link = 'GitSignsChange' },
|
||||||
|
SignDelete = { link = 'GitSignsDelete' },
|
||||||
|
|
||||||
|
-- mvllow/modes.nvim
|
||||||
|
ModesCopy = { bg = palette.gold },
|
||||||
|
ModesDelete = { bg = palette.love },
|
||||||
|
ModesInsert = { bg = palette.foam },
|
||||||
|
ModesVisual = { bg = palette.iris },
|
||||||
|
|
||||||
|
-- kyazdani42/nvim-tree.lua
|
||||||
|
NvimTreeEmptyFolderName = { fg = palette.muted },
|
||||||
|
NvimTreeFileDeleted = { fg = palette.love },
|
||||||
|
NvimTreeFileDirty = { fg = palette.rose },
|
||||||
|
NvimTreeFileMerge = { fg = palette.iris },
|
||||||
|
NvimTreeFileNew = { fg = palette.foam },
|
||||||
|
NvimTreeFileRenamed = { fg = palette.pine },
|
||||||
|
NvimTreeFileStaged = { fg = palette.iris },
|
||||||
|
NvimTreeFolderIcon = { fg = palette.subtle },
|
||||||
|
NvimTreeFolderName = { fg = palette.foam },
|
||||||
|
NvimTreeGitDeleted = { fg = group.git_delete },
|
||||||
|
NvimTreeGitDirty = { fg = group.git_dirty },
|
||||||
|
NvimTreeGitIgnored = { fg = group.git_ignore },
|
||||||
|
NvimTreeGitMerge = { fg = group.git_merge },
|
||||||
|
NvimTreeGitNew = { fg = group.git_add },
|
||||||
|
NvimTreeGitRenamed = { fg = group.git_rename },
|
||||||
|
NvimTreeGitStaged = { fg = group.git_stage },
|
||||||
|
NvimTreeImageFile = { fg = palette.text },
|
||||||
|
NvimTreeNormal = { fg = palette.text },
|
||||||
|
NvimTreeOpenedFile = { fg = palette.text, bg = palette.highlight_med },
|
||||||
|
NvimTreeOpenedFolderName = { fg = palette.foam },
|
||||||
|
NvimTreeRootFolder = { fg = palette.iris },
|
||||||
|
NvimTreeSpecialFile = { link = 'NvimTreeNormal' },
|
||||||
|
NvimTreeWindowPicker = { fg = palette.base, bg = palette.iris },
|
||||||
|
|
||||||
|
-- folke/which-key.nvim
|
||||||
|
WhichKey = { fg = palette.iris },
|
||||||
|
WhichKeyGroup = { fg = palette.foam },
|
||||||
|
WhichKeySeparator = { fg = palette.subtle },
|
||||||
|
WhichKeyDesc = { fg = palette.gold },
|
||||||
|
WhichKeyFloat = { bg = palette.surface },
|
||||||
|
WhichKeyValue = { fg = palette.rose },
|
||||||
|
|
||||||
|
-- luka-reineke/indent-blankline.nvim
|
||||||
|
IndentBlanklineChar = { fg = palette.muted },
|
||||||
|
|
||||||
|
-- hrsh7th/nvim-cmp
|
||||||
|
CmpItemAbbr = { fg = palette.subtle },
|
||||||
|
CmpItemAbbrDeprecated = { fg = palette.subtle, style = 'strikethrough' },
|
||||||
|
CmpItemAbbrMatch = { fg = palette.text, style = 'bold' },
|
||||||
|
CmpItemAbbrMatchFuzzy = { fg = palette.text, style = 'bold' },
|
||||||
|
CmpItemKind = { fg = palette.iris },
|
||||||
|
CmpItemKindClass = { fg = palette.gold },
|
||||||
|
CmpItemKindFunction = { fg = palette.iris },
|
||||||
|
CmpItemKindInterface = { fg = palette.gold },
|
||||||
|
CmpItemKindMethod = { fg = palette.iris },
|
||||||
|
CmpItemKindSnippet = { fg = palette.iris },
|
||||||
|
CmpItemKindVariable = { fg = palette.foam },
|
||||||
|
|
||||||
|
-- TimUntersberger/neogit
|
||||||
|
NeogitDiffAddHighlight = { fg = palette.foam, bg = palette.highlight_med },
|
||||||
|
NeogitDiffContextHighlight = { bg = palette.highlight_low },
|
||||||
|
NeogitDiffDeleteHighlight = { fg = palette.love, bg = palette.highlight_med },
|
||||||
|
NeogitHunkHeader = { bg = palette.highlight_low },
|
||||||
|
NeogitHunkHeaderHighlight = { bg = palette.highlight_low },
|
||||||
|
|
||||||
|
-- vimwiki/vimwiki
|
||||||
|
VimwikiHR = { fg = palette.subtle },
|
||||||
|
VimwikiHeader1 = { fg = group.headings.h1, style = 'bold' },
|
||||||
|
VimwikiHeader2 = { fg = group.headings.h2, style = 'bold' },
|
||||||
|
VimwikiHeader3 = { fg = group.headings.h3, style = 'bold' },
|
||||||
|
VimwikiHeader4 = { fg = group.headings.h4, style = 'bold' },
|
||||||
|
VimwikiHeader5 = { fg = group.headings.h5, style = 'bold' },
|
||||||
|
VimwikiHeader6 = { fg = group.headings.h6, style = 'bold' },
|
||||||
|
VimwikiHeaderChar = { fg = palette.pine },
|
||||||
|
VimwikiLink = { fg = group.link, style = 'underline' },
|
||||||
|
VimwikiList = { fg = palette.iris },
|
||||||
|
VimwikiNoExistsLink = { fg = palette.love },
|
||||||
|
|
||||||
|
-- nvim-neorg/neorg
|
||||||
|
NeorgHeading1Prefix = { fg = group.headings.h1, style = 'bold' },
|
||||||
|
NeorgHeading1Title = { link = 'NeorgHeading1Prefix' },
|
||||||
|
NeorgHeading2Prefix = { fg = group.headings.h2, style = 'bold' },
|
||||||
|
NeorgHeading2Title = { link = 'NeorgHeading2Prefix' },
|
||||||
|
NeorgHeading3Prefix = { fg = group.headings.h3, style = 'bold' },
|
||||||
|
NeorgHeading3Title = { link = 'NeorgHeading3Prefix' },
|
||||||
|
NeorgHeading4Prefix = { fg = group.headings.h4, style = 'bold' },
|
||||||
|
NeorgHeading4Title = { link = 'NeorgHeading4Prefix' },
|
||||||
|
NeorgHeading5Prefix = { fg = group.headings.h5, style = 'bold' },
|
||||||
|
NeorgHeading5Title = { link = 'NeorgHeading5Prefix' },
|
||||||
|
NeorgHeading6Prefix = { fg = group.headings.h6, style = 'bold' },
|
||||||
|
NeorgHeading6Title = { link = 'NeorgHeading6Prefix' },
|
||||||
|
NeorgMarkerTitle = { fg = palette.text, style = 'bold' },
|
||||||
|
|
||||||
|
-- tami5/lspsaga.nvim (fork of glepnir/lspsaga.nvim)
|
||||||
|
DefinitionCount = { fg = palette.rose },
|
||||||
|
DefinitionIcon = { fg = palette.rose },
|
||||||
|
DefintionPreviewTitle = { fg = palette.rose, style = 'bold' },
|
||||||
|
LspFloatWinBorder = { fg = group.border },
|
||||||
|
LspFloatWinNormal = { bg = palette.base },
|
||||||
|
LspSagaAutoPreview = { fg = palette.subtle },
|
||||||
|
LspSagaCodeActionBorder = { fg = group.border },
|
||||||
|
LspSagaCodeActionContent = { fg = palette.foam },
|
||||||
|
LspSagaCodeActionTitle = { fg = palette.gold, style = 'bold' },
|
||||||
|
LspSagaCodeActionTruncateLine = { link = 'LspSagaCodeActionBorder' },
|
||||||
|
LspSagaDefPreviewBorder = { fg = group.border },
|
||||||
|
LspSagaDiagnosticBorder = { fg = group.border },
|
||||||
|
LspSagaDiagnosticHeader = { fg = palette.gold, style = 'bold' },
|
||||||
|
LspSagaDiagnosticTruncateLine = { link = 'LspSagaDiagnosticBorder' },
|
||||||
|
LspSagaDocTruncateLine = { link = 'LspSagaHoverBorder' },
|
||||||
|
LspSagaFinderSelection = { fg = palette.gold },
|
||||||
|
LspSagaHoverBorder = { fg = group.border },
|
||||||
|
LspSagaLspFinderBorder = { fg = group.border },
|
||||||
|
LspSagaRenameBorder = { fg = palette.pine },
|
||||||
|
LspSagaRenamePromptPrefix = { fg = palette.love },
|
||||||
|
LspSagaShTruncateLine = { link = 'LspSagaSignatureHelpBorder' },
|
||||||
|
LspSagaSignatureHelpBorder = { fg = palette.pine },
|
||||||
|
ReferencesCount = { fg = palette.rose },
|
||||||
|
ReferencesIcon = { fg = palette.rose },
|
||||||
|
SagaShadow = { bg = palette.overlay },
|
||||||
|
TargetWord = { fg = palette.iris },
|
||||||
|
|
||||||
|
-- ray-x/lsp_signature.nvim
|
||||||
|
LspSignatureActiveParameter = { bg = palette.overlay },
|
||||||
|
|
||||||
|
-- rlane/pounce.nvim
|
||||||
|
PounceAccept = { fg = palette.love, bg = palette.highlight_high },
|
||||||
|
PounceAcceptBest = { fg = palette.base, bg = palette.gold },
|
||||||
|
PounceGap = { link = 'Search' },
|
||||||
|
PounceMatch = { link = 'Search' },
|
||||||
|
|
||||||
|
-- nvim-telescope/telescope.nvim
|
||||||
|
TelescopeBorder = { fg = group.border },
|
||||||
|
TelescopeMatching = { fg = palette.rose },
|
||||||
|
TelescopeNormal = { fg = palette.subtle },
|
||||||
|
TelescopePromptNormal = { fg = palette.text },
|
||||||
|
TelescopePromptPrefix = { fg = palette.subtle },
|
||||||
|
TelescopeSelection = { fg = palette.text, bg = palette.overlay },
|
||||||
|
TelescopeSelectionCaret = { fg = palette.rose, bg = palette.overlay },
|
||||||
|
TelescopeTitle = { fg = palette.subtle },
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.g.terminal_color_0 = palette.overlay -- black
|
||||||
|
vim.g.terminal_color_8 = palette.subtle -- bright black
|
||||||
|
vim.g.terminal_color_1 = palette.love -- red
|
||||||
|
vim.g.terminal_color_9 = palette.love -- bright red
|
||||||
|
vim.g.terminal_color_2 = palette.pine -- green
|
||||||
|
vim.g.terminal_color_10 = palette.pine -- bright green
|
||||||
|
vim.g.terminal_color_3 = palette.gold -- yellow
|
||||||
|
vim.g.terminal_color_11 = palette.gold -- bright yellow
|
||||||
|
vim.g.terminal_color_4 = palette.foam -- blue
|
||||||
|
vim.g.terminal_color_12 = palette.foam -- bright blue
|
||||||
|
vim.g.terminal_color_5 = palette.iris -- magenta
|
||||||
|
vim.g.terminal_color_13 = palette.iris -- bright magenta
|
||||||
|
vim.g.terminal_color_6 = palette.rose -- cyan
|
||||||
|
vim.g.terminal_color_14 = palette.rose -- bright cyan
|
||||||
|
vim.g.terminal_color_7 = palette.text -- white
|
||||||
|
vim.g.terminal_color_15 = palette.text -- bright white
|
||||||
|
|
||||||
|
return theme
|
||||||
32
lua/rose-pine/util.lua
Normal file
32
lua/rose-pine/util.lua
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
local util = {}
|
||||||
|
|
||||||
|
local function get_byte(value, offset)
|
||||||
|
return bit.band(bit.rshift(value, offset), 0xFF)
|
||||||
|
end
|
||||||
|
|
||||||
|
local function get_color(color)
|
||||||
|
color = vim.api.nvim_get_color_by_name(color)
|
||||||
|
|
||||||
|
if color == -1 then
|
||||||
|
color = vim.opt.background:get() == 'dark' and 000 or 255255255
|
||||||
|
end
|
||||||
|
|
||||||
|
return { get_byte(color, 16), get_byte(color, 8), get_byte(color, 0) }
|
||||||
|
end
|
||||||
|
|
||||||
|
---@param fg string foreground color
|
||||||
|
---@param bg string background color
|
||||||
|
---@param alpha number number between 0 (background) and 1 (foreground)
|
||||||
|
function util.blend(fg, bg, alpha)
|
||||||
|
bg = get_color(bg)
|
||||||
|
fg = get_color(fg)
|
||||||
|
|
||||||
|
local function blend_channel(i)
|
||||||
|
local ret = (alpha * fg[i] + ((1 - alpha) * bg[i]))
|
||||||
|
return math.floor(math.min(math.max(0, ret), 255) + 0.5)
|
||||||
|
end
|
||||||
|
|
||||||
|
return string.format('#%02X%02X%02X', blend_channel(1), blend_channel(2), blend_channel(3))
|
||||||
|
end
|
||||||
|
|
||||||
|
return util
|
||||||
|
|
@ -1,65 +0,0 @@
|
||||||
local utilities = {}
|
|
||||||
|
|
||||||
---@param color string
|
|
||||||
local function color_to_rgb(color)
|
|
||||||
local function byte(value, offset)
|
|
||||||
return bit.band(bit.rshift(value, offset), 0xFF)
|
|
||||||
end
|
|
||||||
|
|
||||||
local new_color = vim.api.nvim_get_color_by_name(color)
|
|
||||||
if new_color == -1 then
|
|
||||||
new_color = vim.opt.background:get() == "dark" and 000 or 255255255
|
|
||||||
end
|
|
||||||
|
|
||||||
return { byte(new_color, 16), byte(new_color, 8), byte(new_color, 0) }
|
|
||||||
end
|
|
||||||
|
|
||||||
local color_cache = {}
|
|
||||||
|
|
||||||
---@param color string Palette key or hex value
|
|
||||||
function utilities.parse_color(color)
|
|
||||||
if color_cache[color] then
|
|
||||||
return color_cache[color]
|
|
||||||
end
|
|
||||||
|
|
||||||
if color == nil then
|
|
||||||
print("Invalid color: " .. color)
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
|
|
||||||
color = color:lower()
|
|
||||||
|
|
||||||
if not color:find("#") and color ~= "NONE" then
|
|
||||||
color = require("rose-pine.palette")[color] or vim.api.nvim_get_color_by_name(color)
|
|
||||||
end
|
|
||||||
|
|
||||||
color_cache[color] = color
|
|
||||||
return color
|
|
||||||
end
|
|
||||||
|
|
||||||
local blend_cache = {}
|
|
||||||
|
|
||||||
---@param fg string Foreground color
|
|
||||||
---@param bg string Background color
|
|
||||||
---@param alpha number Between 0 (background) and 1 (foreground)
|
|
||||||
function utilities.blend(fg, bg, alpha)
|
|
||||||
local cache_key = fg .. bg .. alpha
|
|
||||||
if blend_cache[cache_key] then
|
|
||||||
return blend_cache[cache_key]
|
|
||||||
end
|
|
||||||
|
|
||||||
local fg_rgb = color_to_rgb(fg)
|
|
||||||
local bg_rgb = color_to_rgb(bg)
|
|
||||||
|
|
||||||
local function blend_channel(i)
|
|
||||||
local ret = (alpha * fg_rgb[i] + ((1 - alpha) * bg_rgb[i]))
|
|
||||||
return math.floor(math.min(math.max(0, ret), 255) + 0.5)
|
|
||||||
end
|
|
||||||
|
|
||||||
local result = string.format("#%02X%02X%02X", blend_channel(1), blend_channel(2), blend_channel(3))
|
|
||||||
|
|
||||||
blend_cache[cache_key] = result
|
|
||||||
return result
|
|
||||||
end
|
|
||||||
|
|
||||||
return utilities
|
|
||||||
205
readme.md
205
readme.md
|
|
@ -11,151 +11,144 @@
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Getting started
|
## Usage
|
||||||
|
|
||||||
Install `rose-pine/neovim` using your favourite package manager:
|
|
||||||
|
|
||||||
### [pam.nvim](https://github.com/mvllow/pam.nvim)
|
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
{ source = "rose-pine/neovim", as = "rose-pine" }
|
use({
|
||||||
|
'rose-pine/neovim',
|
||||||
|
as = 'rose-pine',
|
||||||
|
-- tag = '...',
|
||||||
|
config = function()
|
||||||
|
vim.cmd('colorscheme rose-pine')
|
||||||
|
end
|
||||||
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
### [lazy.nvim](https://lazy.folke.io/installation)
|
## Plugins
|
||||||
|
|
||||||
**Structured Setup**
|
> PR's are more than welcome if your favourite plugin is missing
|
||||||
|
|
||||||
|
- [neovim diagnostics](https://neovim.io/doc/user/lsp.html)
|
||||||
|
- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
|
||||||
|
- [barbar.nvim](https://github.com/romgrk/barbar.nvim)
|
||||||
|
- [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim)
|
||||||
|
- [mode.nvim](https://github.com/mvllow/modes.nvim)
|
||||||
|
- [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua)
|
||||||
|
- [which-key.nvim](https://github.com/folke/which-key.nvim)
|
||||||
|
- [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim)
|
||||||
|
- [neogit](https://github.com/TimUntersberger/neogit)
|
||||||
|
- [neorg](https://github.com/nvim-neorg/neorg)
|
||||||
|
- [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)
|
||||||
|
- [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim)
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
-- lua/plugins/rose-pine.lua
|
use({
|
||||||
return {
|
'nvim-lualine/lualine.nvim',
|
||||||
"rose-pine/neovim",
|
-- Fix mismatch palette between variants
|
||||||
name = "rose-pine",
|
event = 'ColorScheme',
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd("colorscheme rose-pine")
|
require('lualine').setup({
|
||||||
|
options = {
|
||||||
|
---@usage 'rose-pine' | 'rose-pine-alt'
|
||||||
|
theme = 'rose-pine'
|
||||||
|
}
|
||||||
|
})
|
||||||
end
|
end
|
||||||
}
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
**Single file**
|
- [galaxyline.nvim fork](https://github.com/NTBBloodbath/galaxyline.nvim)
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
{ "rose-pine/neovim", name = "rose-pine" }
|
local colors = require("galaxyline.themes.colors")["rose-pine"]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Gallery
|
## Gallery
|
||||||
|
|
||||||
**Rosé Pine**
|
**Rosé Pine**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
**Rosé Pine Moon**
|
**Rosé Pine Moon**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
**Rosé Pine Dawn**
|
**Rosé Pine Dawn**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> Options should be set **before** colorscheme
|
||||||
> Configure options _before_ setting colorscheme.
|
|
||||||
|
|
||||||
Rosé Pine has three variants: main, moon, and dawn. By default, `vim.o.background` is followed, using dawn when light and `dark_variant` when dark.
|
|
||||||
|
|
||||||
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({
|
-- set theme variant, matching terminal theme if unset
|
||||||
variant = "auto", -- auto, main, moon, or dawn
|
-- @usage 'main' | 'moon' | 'dawn'
|
||||||
dark_variant = "main", -- main, moon, or dawn
|
vim.g.rose_pine_variant = ''
|
||||||
dim_inactive_windows = false,
|
|
||||||
extend_background_behind_borders = true,
|
|
||||||
|
|
||||||
enable = {
|
vim.g.rose_pine_bold_vertical_split_line = false
|
||||||
terminal = true,
|
vim.g.rose_pine_disable_background = false
|
||||||
legacy_highlights = true, -- Improve compatibility for previous versions of Neovim
|
vim.g.rose_pine_disable_float_background = false
|
||||||
migrations = true, -- Handle deprecated options automatically
|
vim.g.rose_pine_disable_italics = false
|
||||||
},
|
vim.g.rose_pine_inactive_background = false
|
||||||
|
|
||||||
styles = {
|
local palette = require('rose-pine.palette')
|
||||||
bold = true,
|
vim.g.rose_pine_colors = {
|
||||||
italic = true,
|
border = palette.highlight_med,
|
||||||
transparency = false,
|
comment = palette.muted,
|
||||||
},
|
link = palette.iris,
|
||||||
|
punctuation = palette.subtle,
|
||||||
|
|
||||||
groups = {
|
error = palette.love,
|
||||||
border = "muted",
|
hint = palette.iris,
|
||||||
link = "iris",
|
info = palette.foam,
|
||||||
panel = "surface",
|
warn = palette.gold,
|
||||||
|
|
||||||
error = "love",
|
git_add = palette.foam,
|
||||||
hint = "iris",
|
git_change = palette.rose,
|
||||||
info = "foam",
|
git_delete = palette.love,
|
||||||
note = "pine",
|
git_dirty = palette.rose,
|
||||||
todo = "rose",
|
git_ignore = palette.muted,
|
||||||
warn = "gold",
|
git_merge = palette.iris,
|
||||||
|
git_rename = palette.pine,
|
||||||
|
git_stage = palette.iris,
|
||||||
|
git_text = palette.rose,
|
||||||
|
|
||||||
git_add = "foam",
|
-- or set all headings to one colour: `headings = palette.text`
|
||||||
git_change = "rose",
|
headings = {
|
||||||
git_delete = "love",
|
h1 = palette.iris,
|
||||||
git_dirty = "rose",
|
h2 = palette.foam,
|
||||||
git_ignore = "muted",
|
h3 = palette.rose,
|
||||||
git_merge = "iris",
|
h4 = palette.gold,
|
||||||
git_rename = "pine",
|
h5 = palette.pine,
|
||||||
git_stage = "iris",
|
h6 = palette.foam,
|
||||||
git_text = "rose",
|
},
|
||||||
git_untracked = "subtle",
|
}
|
||||||
|
|
||||||
h1 = "iris",
|
-- Set colorscheme after options
|
||||||
h2 = "foam",
|
vim.cmd('colorscheme rose-pine')
|
||||||
h3 = "rose",
|
|
||||||
h4 = "gold",
|
|
||||||
h5 = "pine",
|
|
||||||
h6 = "foam",
|
|
||||||
},
|
|
||||||
|
|
||||||
palette = {
|
|
||||||
-- Override the builtin palette per variant
|
|
||||||
-- moon = {
|
|
||||||
-- base = '#18191a',
|
|
||||||
-- overlay = '#363738',
|
|
||||||
-- },
|
|
||||||
},
|
|
||||||
|
|
||||||
-- NOTE: Highlight groups are extended (merged) by default. Disable this
|
|
||||||
-- per group via `inherit = false`
|
|
||||||
highlight_groups = {
|
|
||||||
-- Comment = { fg = "foam" },
|
|
||||||
-- StatusLine = { fg = "love", bg = "love", blend = 15 },
|
|
||||||
-- VertSplit = { fg = "muted", bg = "muted" },
|
|
||||||
-- Visual = { fg = "base", bg = "text", inherit = false },
|
|
||||||
},
|
|
||||||
|
|
||||||
before_highlight = function(group, highlight, palette)
|
|
||||||
-- Disable all undercurls
|
|
||||||
-- if highlight.undercurl then
|
|
||||||
-- highlight.undercurl = false
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- Change palette colour
|
|
||||||
-- if highlight.fg == palette.pine then
|
|
||||||
-- highlight.fg = palette.foam
|
|
||||||
-- end
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.cmd("colorscheme rose-pine")
|
|
||||||
-- vim.cmd("colorscheme rose-pine-main")
|
|
||||||
-- vim.cmd("colorscheme rose-pine-moon")
|
|
||||||
-- vim.cmd("colorscheme rose-pine-dawn")
|
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!NOTE]
|
## Suggested keymaps
|
||||||
> Visit the [wiki](https://github.com/rose-pine/neovim/wiki) for [plugin configurations](https://github.com/rose-pine/neovim/wiki/Plugin-configurations) and [recipes](https://github.com/rose-pine/neovim/wiki/Recipes).
|
|
||||||
|
```lua
|
||||||
|
-- toggle between all variants
|
||||||
|
vim.keymap.set('n', '<leader>tt', require('rose-pine').toggle)
|
||||||
|
|
||||||
|
-- or toggle between some variants
|
||||||
|
vim.keymap.set('n', '<leader>tt', function() return require('rose-pine').toggle({'moon', 'dawn'}) end)
|
||||||
|
|
||||||
|
-- set variant
|
||||||
|
vim.keymap.set('n', '<leader>t1', function() return require('rose-pine').set('main') end)
|
||||||
|
vim.keymap.set('n', '<leader>t2', function() return require('rose-pine').set('moon') end)
|
||||||
|
vim.keymap.set('n', '<leader>t3', function() return require('rose-pine').set('dawn') end)
|
||||||
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
We welcome and appreciate contributions of any kind. Create an issue or start a discussion for any proposed changes. Pull requests are encouraged for supporting additional plugins or [treesitter improvements](https://github.com/nvim-treesitter/nvim-treesitter/blob/master/CONTRIBUTING.md#highlights).
|
We welcome and appreciate any help in creating a lovely experience for all.
|
||||||
|
|
||||||
Feel free to update the [wiki](https://github.com/rose-pine/neovim/wiki/) with any [recipes](https://github.com/rose-pine/neovim/wiki/Recipes).
|
- [Get highlight groups under cursor](https://github.com/nvim-treesitter/playground#show-treesitter-and-syntax-highlight-groups-under-the-cursor)
|
||||||
|
- [Adding new highlight groups](https://github.com/rose-pine/neovim/issues/6#issuecomment-962466323)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue