Skip to content

Commit 05af15c

Browse files
warbaconLoganSchmalz
authored andcommitted
perf: load tokyonight.nvim in the intended way (nvim-lua#1360)
Fixes nvim-lua#1357
1 parent 1ccea8a commit 05af15c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

init.lua

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -876,15 +876,18 @@ require('lazy').setup({
876876
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
877877
'folke/tokyonight.nvim',
878878
priority = 1000, -- Make sure to load this before all the other start plugins.
879-
init = function()
879+
config = function()
880+
---@diagnostic disable-next-line: missing-fields
881+
require('tokyonight').setup {
882+
styles = {
883+
comments = { italic = false }, -- Disable italics in comments
884+
},
885+
}
886+
880887
-- Load the colorscheme here.
881888
-- Like many other themes, this one has different styles, and you could load
882889
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
883-
-- vim.cmd.colorscheme 'tokyonight-night'
884-
vim.cmd.colorscheme 'habamax'
885-
886-
-- You can configure highlights by doing something like:
887-
vim.cmd.hi 'Comment gui=none'
890+
vim.cmd.colorscheme 'tokyonight-night'
888891
end,
889892
},
890893

0 commit comments

Comments
 (0)