perf: load tokyonight.nvim in the intended way (#1360)

Fixes #1357
pull/1363/head
Joaquín Guerra 3 weeks ago committed by GitHub
parent 76e06fec5c
commit ebca680dea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -874,14 +874,18 @@ require('lazy').setup({
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
'folke/tokyonight.nvim',
priority = 1000, -- Make sure to load this before all the other start plugins.
init = function()
config = function()
---@diagnostic disable-next-line: missing-fields
require('tokyonight').setup {
styles = {
comments = { italic = false }, -- Disable italics in comments
},
}
-- Load the colorscheme here.
-- Like many other themes, this one has different styles, and you could load
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
vim.cmd.colorscheme 'tokyonight-night'
-- You can configure highlights by doing something like:
vim.cmd.hi 'Comment gui=none'
end,
},

Loading…
Cancel
Save