perf: load tokyonight.nvim in the intended way (#1360)

Fixes #1357
This commit is contained in:
Joaquín Guerra 2025-02-18 01:10:48 +01:00 committed by Nickalas Cason
parent 4f819c92a0
commit 427b73325c
1 changed files with 8 additions and 1 deletions

View File

@ -884,7 +884,14 @@ require('lazy').setup({
--'folke/tokyonight.nvim', --'folke/tokyonight.nvim',
'ellisonleao/gruvbox.nvim', 'ellisonleao/gruvbox.nvim',
priority = 1000, -- Make sure to load this before all the other start plugins. priority = 1000, -- Make sure to load this before all the other start plugins.
init = function() config = function()
---@diagnostic disable-next-line: missing-fields
require('tokyonight').setup {
styles = {
comments = { italic = false }, -- Disable italics in comments
},
}
-- Load the colorscheme here. -- Load the colorscheme here.
-- Like many other themes, this one has different styles, and you could load -- Like many other themes, this one has different styles, and you could load
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.