Skip to content

Commit 21c7a8c

Browse files
perf: load tokyonight.nvim in the intended way (nvim-lua#1360)
Fixes nvim-lua#1357
1 parent 6851942 commit 21c7a8c

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
@@ -889,7 +889,14 @@ require('lazy').setup({
889889
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
890890
'folke/tokyonight.nvim',
891891
priority = 1000, -- Make sure to load this before all the other start plugins.
892-
init = function()
892+
config = function()
893+
-- ---@diagnostic disable-next-line: missing-fields
894+
-- require('tokyonight').setup {
895+
-- styles = {
896+
-- comments = { italic = false }, -- Disable italics in comments
897+
-- },
898+
-- }
899+
893900
-- Load the colorscheme here.
894901
-- Like many other themes, this one has different styles, and you could load
895902
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.

0 commit comments

Comments
 (0)