diff options
| author | JoaquĆn Guerra <joaquinguerratocino@gmail.com> | 2025-02-18 01:10:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-17 19:10:48 -0500 |
| commit | 70cc32baa97ae7fad09cc4e17b269d2accac3a91 (patch) | |
| tree | 53af200e5a5b877053a03eae4558d9e56dd6e7bf | |
| parent | 08e4150deec854f2b691a8a4471b4defe0ee330d (diff) | |
| download | dots-70cc32baa97ae7fad09cc4e17b269d2accac3a91.tar.gz | |
perf: load tokyonight.nvim in the intended way (#1360)
Fixes #1357
| -rw-r--r-- | nvim/init.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index d91174b..b57a4b9 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -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, }, |