From 91c25f30259418ea3609a3f51f43c7b4a4f03ae8 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 18 Jan 2025 11:53:20 +0100 Subject: [PATCH] feat: Enable tokyonight theme It is just one of the best themes even when it takes some ms more to load. You can disable tokyonight with ```lua return { "folke/tokyonight.nvim", enabled = false, } ``` in extras folder. --- lua/vnext/config/init.lua | 3 --- lua/vnext/plugins/ui.lua | 22 ++++++++++------------ lua/vnext/plugins/which-key.lua | 1 - 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/lua/vnext/config/init.lua b/lua/vnext/config/init.lua index e2a8e79f..80f71563 100644 --- a/lua/vnext/config/init.lua +++ b/lua/vnext/config/init.lua @@ -2,6 +2,3 @@ require("vnext.config.options") require("vnext.config.lazy") require("vnext.config.autocmds") require("vnext.config.mappings") - --- HACK: the default color scheme has a very bright color -vim.api.nvim_set_hl(0, "StatusLine", { bg = "#1c1c1c" }) diff --git a/lua/vnext/plugins/ui.lua b/lua/vnext/plugins/ui.lua index bd576278..9d65e90c 100644 --- a/lua/vnext/plugins/ui.lua +++ b/lua/vnext/plugins/ui.lua @@ -81,16 +81,14 @@ return { }, opts = {}, }, - -- { - -- "folke/tokyonight.nvim", - -- priority = 1000, - -- lazy = false, - -- opts = { - -- style = "moon", - -- }, - -- config = function(_, opts) - -- require("tokyonight").setup({ opts }) - -- vim.cmd("colorscheme tokyonight") - -- end, - -- }, + + { + "folke/tokyonight.nvim", + priority = 1000, + lazy = false, + config = function() + require("tokyonight").setup() + vim.cmd("colorscheme tokyonight-moon") + end, + }, } diff --git a/lua/vnext/plugins/which-key.lua b/lua/vnext/plugins/which-key.lua index 1f8ae147..92d058bd 100644 --- a/lua/vnext/plugins/which-key.lua +++ b/lua/vnext/plugins/which-key.lua @@ -23,7 +23,6 @@ return { }, }, config = function(_, opts) - vim.api.nvim_set_hl(0, "WhichKeyTitle", { bg = "#000000" }) -- HACK: only works if border is black require("which-key").setup(opts) end, }