Skip to content

Commit d5095f9

Browse files
warbaconShrinivas Kamath
authored and
Shrinivas Kamath
committed
perf: load tokyonight.nvim in the intended way (nvim-lua#1360)
Fixes nvim-lua#1357
1 parent e474c15 commit d5095f9

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
@@ -886,14 +886,18 @@ require('lazy').setup({
886886
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
887887
'folke/tokyonight.nvim',
888888
priority = 1000, -- Make sure to load this before all the other start plugins.
889-
init = function()
889+
config = function()
890+
---@diagnostic disable-next-line: missing-fields
891+
require('tokyonight').setup {
892+
styles = {
893+
comments = { italic = false }, -- Disable italics in comments
894+
},
895+
}
896+
890897
-- Load the colorscheme here.
891898
-- Like many other themes, this one has different styles, and you could load
892899
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
893900
vim.cmd.colorscheme 'tokyonight-night'
894-
895-
-- You can configure highlights by doing something like:
896-
vim.cmd.hi 'Comment gui=none'
897901
end,
898902
},
899903

0 commit comments

Comments
 (0)