Skip to content

Commit 41c1af8

Browse files
warbaconRichard V.H
authored andcommitted
perf: load tokyonight.nvim in the intended way (nvim-lua#1360)
Fixes nvim-lua#1357
1 parent 9b5f219 commit 41c1af8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

init.lua

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,14 +874,25 @@ require('lazy').setup({
874874
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
875875
'loctvl842/monokai-pro.nvim',
876876
priority = 1000, -- Make sure to load this before all the other start plugins.
877-
init = function()
877+
config = function()
878+
---@diagnostic disable-next-line: missing-fields
879+
require('tokyonight').setup {
880+
styles = {
881+
comments = { italic = false }, -- Disable italics in comments
882+
},
883+
}
884+
878885
-- Load the colorscheme here.
879886
-- Like many other themes, this one has different styles, and you could load
880887
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
888+
<<<<<<< HEAD
881889
vim.cmd.colorscheme 'monokai-pro'
882890

883891
-- You can configure highlights by doing something like:
884892
vim.cmd.hi 'Comment gui=none'
893+
=======
894+
vim.cmd.colorscheme 'tokyonight-night'
895+
>>>>>>> ebca680 (perf: load tokyonight.nvim in the intended way (#1360))
885896
end,
886897
},
887898

0 commit comments

Comments
 (0)