Skip to content

Commit 2c2e9a2

Browse files
warbaconchrmzio
authored andcommitted
merged some changes
perf: load tokyonight.nvim in the intended way (nvim-lua#1360) Fixes nvim-lua#1357
1 parent f9be521 commit 2c2e9a2

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

init.lua

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -911,17 +911,22 @@ require('lazy').setup({
911911
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
912912
'folke/tokyonight.nvim',
913913
priority = 1000, -- Make sure to load this before all the other start plugins.
914-
opts = {
915-
transparent = true,
916-
},
917-
init = function()
914+
-- opts = {
915+
-- transparent = true,
916+
-- },
917+
-- init = function()
918+
config = function()
919+
---@diagnostic disable-next-line: missing-fields
920+
require('tokyonight').setup {
921+
styles = {
922+
comments = { italic = false }, -- Disable italics in comments
923+
},
924+
}
925+
918926
-- Load the colorscheme here.
919927
-- Like many other themes, this one has different styles, and you could load
920928
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
921929
vim.cmd.colorscheme 'tokyonight-night'
922-
923-
-- You can configure highlights by doing something like:
924-
vim.cmd.hi 'Comment gui=none'
925930
end,
926931
},
927932

0 commit comments

Comments
 (0)