kickstart.nvim/lua/config/plugins/tokyonight.lua

40 lines
1.3 KiB
Lua

--[[
Path: lua/config/plugins/tokyonight.lua
Module: config.plugins.tokyonight
Purpose
Lazy spec for tokyonight.nvim: colorscheme plugin with high priority so it
loads before most UI; disables italic comments then sets `colorscheme`.
Rationale
Centralizes theme choice. Swap plugin name + `vim.cmd.colorscheme` here if
you change distributions.
See `:help colorscheme`, plugin README.
]]
---@type LazySpec
return {
{ -- You can easily change to a different colorscheme.
-- Change the name of the colorscheme plugin below, and then
-- change the command in the config to whatever the name of that colorscheme is.
--
-- 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.
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'
end,
},
}