diff --git a/lua/colorscheme.lua b/lua/colorscheme.lua index f210146..7b2edd9 100644 --- a/lua/colorscheme.lua +++ b/lua/colorscheme.lua @@ -1,6 +1,5 @@ -- define your colorscheme here --- local colorscheme = 'lunaperche-sl' -local colorscheme = 'nightfox' +local colorscheme = 'lunaperche-sl' local is_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) if not is_ok then diff --git a/lua/keybindings.lua b/lua/keybindings.lua index 1550ab3..6cfc660 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.g.colors_name == "nightfox" then - vim.cmd('colorscheme dayfox') - else - vim.cmd('colorscheme nightfox') - end -end, { desc = "Toggle Nightfox/Dayfox" }) + if vim.opt.background:get() == "dark" then + vim.o.background = "light" + else + vim.o.background = "dark" + end +end, { desc = "Toggle dark/light mode" }) -- -- configure workspaces diff --git a/lua/plugins.lua b/lua/plugins.lua index bec07fc..4d6a13a 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -608,8 +608,8 @@ 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