mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
feat: add vim.g.rose_pine_disable_float_background option
This commit is contained in:
parent
0f83b4a472
commit
ce1a9d36e5
3 changed files with 9 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ local palette = require('rose-pine.palette')
|
|||
local config = {
|
||||
bold_vert_split = vim.g.rose_pine_bold_verical_split_line or false,
|
||||
no_background = vim.g.rose_pine_disable_background or false,
|
||||
no_float_background = vim.g.rose_pine_disable_float_background or false,
|
||||
no_italics = vim.g.rose_pine_disable_italics or false,
|
||||
colors = {
|
||||
punctuation = palette.subtle,
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ local p = require('rose-pine.palette')
|
|||
|
||||
-- TODO: Refactor `maybe` logic
|
||||
local maybe_base = p.base
|
||||
local maybe_surface = p.surface
|
||||
local maybe_italic = 'italic'
|
||||
local maybe_bold_vert_split = { fg = p.overlay }
|
||||
|
||||
|
|
@ -14,6 +15,10 @@ if config.no_background then
|
|||
maybe_base = p.none
|
||||
end
|
||||
|
||||
if config.no_float_background then
|
||||
maybe_surface = p.none
|
||||
end
|
||||
|
||||
if config.no_italics then
|
||||
maybe_italic = nil
|
||||
end
|
||||
|
|
@ -48,8 +53,8 @@ local theme = {
|
|||
MoreMsg = { fg = p.iris },
|
||||
NonText = { fg = p.inactive },
|
||||
Normal = { fg = p.text, bg = maybe_base },
|
||||
NormalFloat = { fg = p.text, bg = p.surface },
|
||||
Pmenu = { fg = p.subtle, bg = p.surface },
|
||||
NormalFloat = { fg = p.text, bg = maybe_surface },
|
||||
Pmenu = { fg = p.subtle, bg = maybe_surface },
|
||||
PmenuSbar = { bg = p.overlay },
|
||||
PmenuSel = { fg = p.text, bg = p.overlay },
|
||||
PmenuThumb = { bg = p.inactive },
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ vim.g.rose_pine_variant = 'dawn'
|
|||
|
||||
vim.g.rose_pine_bold_vertical_split_line = true
|
||||
vim.g.rose_pine_disable_background = false
|
||||
vim.g.rose_pine_disable_float_background = false
|
||||
vim.g.rose_pine_disable_italics = false
|
||||
|
||||
local p = require('rose-pine.palette')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue