Skip to content

Commit 635fef2

Browse files
warbaconalexsyou
authored andcommitted
perf: load tokyonight.nvim in the intended way (nvim-lua#1360)
Fixes nvim-lua#1357
1 parent 33b4f64 commit 635fef2

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
@@ -875,7 +875,14 @@ require('lazy').setup({
875875
-- 'folke/tokyonight.nvim',
876876
'rose-pine/neovim',
877877
priority = 1000, -- Make sure to load this before all the other start plugins.
878-
init = function()
878+
config = function()
879+
---@diagnostic disable-next-line: missing-fields
880+
require('rose-pine').setup {
881+
styles = {
882+
comments = { italic = false }, -- Disable italics in comments
883+
},
884+
}
885+
879886
-- Load the colorscheme here.
880887
-- Like many other themes, this one has different styles, and you could load
881888
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.

0 commit comments

Comments
 (0)