-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: load tokyonight.nvim in the intended way #1360
Conversation
-- Load the colorscheme here. | ||
-- Like many other themes, this one has different styles, and you could load | ||
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. | ||
vim.cmd.colorscheme 'tokyonight-night' | ||
|
||
-- You can configure highlights by doing something like: | ||
vim.cmd.hi 'Comment gui=none' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure what it stood for, but why do you remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This prevented comments from being displayed in italics, as that's the default behavior in Tokyonight. I removed that line of code and instead used Tokyonight's built-in method (as shown in the setup
function above).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks excellent. Thank you!
perf: load tokyonight.nvim in the intended way (nvim-lua#1360) Fixes nvim-lua#1357
This will cause
tokyonight.nvim
to use its cache and set only the necessary highlighting groups according to the installed plugins, and may improve startup time.Fixes #1357.