Skip to content

Commit 0761a37

Browse files
warbaconMach565
authored andcommitted
perf: load tokyonight.nvim in the intended way (nvim-lua#1360)
Fixes nvim-lua#1357
1 parent 94f614b commit 0761a37

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
@@ -877,14 +877,18 @@ require('lazy').setup({
877877
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
878878
'folke/tokyonight.nvim',
879879
priority = 1000, -- Make sure to load this before all the other start plugins.
880-
init = function()
880+
config = function()
881+
---@diagnostic disable-next-line: missing-fields
882+
require('tokyonight').setup {
883+
styles = {
884+
comments = { italic = false }, -- Disable italics in comments
885+
},
886+
}
887+
881888
-- Load the colorscheme here.
882889
-- Like many other themes, this one has different styles, and you could load
883890
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
884891
vim.cmd.colorscheme 'tokyonight-night'
885-
886-
-- You can configure highlights by doing something like:
887-
vim.cmd.hi 'Comment gui=none'
888892
end,
889893
},
890894

0 commit comments

Comments
 (0)