mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
remove base from variant name when displayed
This commit is contained in:
parent
361c41c782
commit
192a2a3a73
1 changed files with 6 additions and 1 deletions
|
|
@ -4,7 +4,12 @@ end
|
|||
|
||||
local select_variant = function(variant)
|
||||
vim.g.rose_pine_variant = variant
|
||||
local formatted_variant = variant:sub(1, 1):upper() .. variant:sub(2)
|
||||
local formatted_variant = ""
|
||||
if variant == "base" then
|
||||
formatted_variant = ""
|
||||
else
|
||||
formatted_variant = variant:sub(1, 1):upper() .. variant:sub(2)
|
||||
end
|
||||
print("Rosé Pine", formatted_variant)
|
||||
vim.cmd([[colorscheme rose-pine]])
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue