From 427b73325cd87d039c847bf476577afa50768647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20Guerra?= Date: Tue, 18 Feb 2025 01:10:48 +0100 Subject: [PATCH] perf: load tokyonight.nvim in the intended way (#1360) Fixes #1357 --- init.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 6d0fbafa..aeb455c1 100644 --- a/init.lua +++ b/init.lua @@ -884,7 +884,14 @@ require('lazy').setup({ --'folke/tokyonight.nvim', 'ellisonleao/gruvbox.nvim', 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. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.