Skip to content

Commit 67d4aa2

Browse files
warbaconVoxSquadTheGreatest
authored andcommitted
perf: load tokyonight.nvim in the intended way (nvim-lua#1360)
Fixes nvim-lua#1357
1 parent 329e6b1 commit 67d4aa2

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
@@ -881,14 +881,18 @@ require('lazy').setup({
881881
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
882882
'folke/tokyonight.nvim',
883883
priority = 1000, -- Make sure to load this before all the other start plugins.
884-
init = function()
884+
config = function()
885+
---@diagnostic disable-next-line: missing-fields
886+
require('tokyonight').setup {
887+
styles = {
888+
comments = { italic = false }, -- Disable italics in comments
889+
},
890+
}
891+
885892
-- Load the colorscheme here.
886893
-- Like many other themes, this one has different styles, and you could load
887894
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
888895
vim.cmd.colorscheme 'tokyonight-night'
889-
890-
-- You can configure highlights by doing something like:
891-
vim.cmd.hi 'Comment gui=none'
892896
end,
893897
},
894898

0 commit comments

Comments
 (0)