Skip to content

Commit ebca680

Browse files
authored
perf: load tokyonight.nvim in the intended way (#1360)
Fixes #1357
1 parent 76e06fe commit ebca680

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

init.lua

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -874,14 +874,18 @@ require('lazy').setup({
874874
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
875875
'folke/tokyonight.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'.
881888
vim.cmd.colorscheme 'tokyonight-night'
882-
883-
-- You can configure highlights by doing something like:
884-
vim.cmd.hi 'Comment gui=none'
885889
end,
886890
},
887891

0 commit comments

Comments
 (0)