From 19cfaeab49929263c125c4ba2637d8fb57311678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20L=C3=BCdecke?= Date: Mon, 7 Jul 2025 09:08:04 +0200 Subject: [PATCH] Disabled mason plugin, added Nightfox colorscheme --- lua/colorscheme.lua | 3 ++- lua/keybindings.lua | 8 ++++---- lua/plugins.lua | 9 ++++++--- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/lua/colorscheme.lua b/lua/colorscheme.lua index 7b2edd9..f210146 100644 --- a/lua/colorscheme.lua +++ b/lua/colorscheme.lua @@ -1,5 +1,6 @@ -- define your colorscheme here -local colorscheme = 'lunaperche-sl' +-- local colorscheme = 'lunaperche-sl' +local colorscheme = 'nightfox' local is_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) if not is_ok then diff --git a/lua/keybindings.lua b/lua/keybindings.lua index 95123a2..1550ab3 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -28,12 +28,12 @@ vim.keymap.set('n', 'o', ":silent !chromium '%'", { desc = "Open in b -- toggle colorscheme between dark and light vim.keymap.set('n', 'm', function() - if vim.opt.background:get() == "dark" then - vim.o.background = "light" + if vim.g.colors_name == "nightfox" then + vim.cmd('colorscheme dayfox') else - vim.o.background = "dark" + vim.cmd('colorscheme nightfox') end -end, { desc = "Toggle dark/light mode" }) +end, { desc = "Toggle Nightfox/Dayfox" }) -- -- configure workspaces diff --git a/lua/plugins.lua b/lua/plugins.lua index c1a85c6..bec07fc 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -102,8 +102,8 @@ require("lazy").setup({ -- -- LSP manager and others -- - "williamboman/mason.nvim", - "williamboman/mason-lspconfig.nvim", + -- "williamboman/mason.nvim", + -- "williamboman/mason-lspconfig.nvim", "neovim/nvim-lspconfig", -- Nice plugin to show what LSPs are doing in the background (and others @@ -125,7 +125,7 @@ require("lazy").setup({ }, }, - -- fzf-lua + -- fzf-lua { "ibhagwan/fzf-lua", -- optional for icon support @@ -608,6 +608,9 @@ require("lazy").setup({ vim.diagnostic.config({ virtual_text = false }) -- Only if needed in your configuration, if you already have native LSP diagnostics end }, + -- Nightfox colorscheme + { "EdenEast/nightfox.nvim" }, + -- new plugins here },