Skip to content

Commit dfa3b9c

Browse files
warbaconrsandtner
authored andcommitted
perf: load tokyonight.nvim in the intended way (nvim-lua#1360)
Fixes nvim-lua#1357
1 parent 694a219 commit dfa3b9c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

init.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,14 @@ require('lazy').setup({
874874
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
875875
'catppuccin/nvim',
876876
priority = 1000, -- Make sure to load this before all the other start plugins.
877-
init = function()
877+
config = function()
878+
---@diagnostic disable-next-line: missing-fields
879+
require('tokyonight').setup {
880+
styles = {
881+
comments = { italic = false }, -- Disable italics in comments
882+
},
883+
}
884+
878885
-- Load the colorscheme here.
879886
-- Like many other themes, this one has different styles, and you could load
880887
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.

0 commit comments

Comments
 (0)