Replies: 4 comments
-
That doc you linked to is for creating theme files for external programs like fish etc. not to create new styles |
Beta Was this translation helpful? Give feedback.
-
@folke Yah I figure that out... Any guidance you can add own, or maybe an idea to make it generic so I can work on it? I really like all your highlight matchers, and that you keep updating them with TS changes. Since I do all my themes in my desktop with the same color scheme I'd like to add a style instead of replacing the default. Thanks for all your plugins btw, LazyVim got my config from 1.5s to 40ms, can't be happier now, and that's when I got to realize how superior Tokionight is :) |
Beta Was this translation helpful? Give feedback.
-
Haven't tested this, but you should be able to do something like the below: local colors = require("tokyonight.colors")
-- create a new palette based on the default colors
colors.mystyle = vim.deepcopy(colors.default)
-- change the colors for your new palette here
colors.mystyle.bg = "..."
-- load your style
require("tokyonight").load({style = "mystyle"}) |
Beta Was this translation helpful? Give feedback.
-
@folke that works, thank you! |
Beta Was this translation helpful? Give feedback.
-
I was following the instructions here https://github.com/folke/tokyonight.nvim#-contributing
To create an extension but they don't work to create a style, here's what I'm attempting
main...igorgue:tokyonight.nvim:main
The difference in the guide is that I added to
styles
instead ofextras
, I aso create a file:colors/tokyonight-danger.lua
But it creates it with the colors in
tokyonight-night
not the ones I specified.Beta Was this translation helpful? Give feedback.
All reactions