From 41c1af8de0307d26455bfce9a516efaddb6f0330 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 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 92901c09..5c319701 100644 --- a/init.lua +++ b/init.lua @@ -874,14 +874,25 @@ require('lazy').setup({ -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. 'loctvl842/monokai-pro.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'. +<<<<<<< HEAD vim.cmd.colorscheme 'monokai-pro' -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none' +======= + vim.cmd.colorscheme 'tokyonight-night' +>>>>>>> ebca680 (perf: load tokyonight.nvim in the intended way (#1360)) end, },