mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
parent
7c398c943c
commit
64986b857d
3 changed files with 15 additions and 13 deletions
|
|
@ -167,13 +167,14 @@ function M.colorscheme()
|
|||
|
||||
---@param color string
|
||||
local function get_palette_color(color)
|
||||
color = color:lower()
|
||||
local p = require('rose-pine.palette')
|
||||
|
||||
if color and not color:find('#') then
|
||||
return p[color:lower()]
|
||||
if color and not color:find('#') and color ~= 'none' then
|
||||
return p[color]
|
||||
end
|
||||
|
||||
return color:lower()
|
||||
return color
|
||||
end
|
||||
|
||||
---@param group string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue