Reverted back to lunaperche, better compatibility with raw terminal
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
-- define your colorscheme here
|
-- define your colorscheme here
|
||||||
-- local colorscheme = 'lunaperche-sl'
|
local colorscheme = 'lunaperche-sl'
|
||||||
local colorscheme = 'nightfox'
|
|
||||||
|
|
||||||
local is_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
|
local is_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
|
||||||
if not is_ok then
|
if not is_ok then
|
||||||
|
|||||||
@@ -28,12 +28,12 @@ vim.keymap.set('n', '<space>o', ":silent !chromium '%'<cr>", { desc = "Open in b
|
|||||||
|
|
||||||
-- toggle colorscheme between dark and light
|
-- toggle colorscheme between dark and light
|
||||||
vim.keymap.set('n', '<leader>m', function()
|
vim.keymap.set('n', '<leader>m', function()
|
||||||
if vim.g.colors_name == "nightfox" then
|
if vim.opt.background:get() == "dark" then
|
||||||
vim.cmd('colorscheme dayfox')
|
vim.o.background = "light"
|
||||||
else
|
else
|
||||||
vim.cmd('colorscheme nightfox')
|
vim.o.background = "dark"
|
||||||
end
|
end
|
||||||
end, { desc = "Toggle Nightfox/Dayfox" })
|
end, { desc = "Toggle dark/light mode" })
|
||||||
|
|
||||||
--
|
--
|
||||||
-- configure workspaces
|
-- configure workspaces
|
||||||
|
|||||||
@@ -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
|
vim.diagnostic.config({ virtual_text = false }) -- Only if needed in your configuration, if you already have native LSP diagnostics
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
-- Nightfox colorscheme
|
|
||||||
{ "EdenEast/nightfox.nvim" },
|
|
||||||
|
|
||||||
-- new plugins here
|
-- new plugins here
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user