mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-17 14:01:24 +00:00
new theme + plugins
This commit is contained in:
parent
a8610285c6
commit
675652a4b7
5 changed files with 154 additions and 8 deletions
|
|
@ -1,4 +1,16 @@
|
|||
return {
|
||||
{
|
||||
"ellisonleao/gruvbox.nvim",
|
||||
name = "gruvbox",
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
config = function()
|
||||
require("gruvbox").setup({
|
||||
contrast = "hard", -- can be "hard", "soft" or empty string
|
||||
transparent_mode = false,
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"datsfilipe/vesper.nvim",
|
||||
name = "vesper",
|
||||
|
|
@ -41,10 +53,9 @@ return {
|
|||
end
|
||||
end
|
||||
|
||||
-- Default to dark
|
||||
-- Default to dark with Gruvbox
|
||||
vim.o.background = "dark"
|
||||
require("vesper").setup({ transparent = true })
|
||||
vim.cmd.colorscheme("vesper")
|
||||
vim.cmd.colorscheme("gruvbox")
|
||||
end
|
||||
|
||||
-- Set theme on startup
|
||||
|
|
@ -52,15 +63,14 @@ return {
|
|||
|
||||
-- Add command to manually toggle
|
||||
vim.api.nvim_create_user_command("ToggleTheme", function()
|
||||
if vim.g.colors_name == "vesper" then
|
||||
if vim.g.colors_name == "gruvbox" then
|
||||
vim.o.termguicolors = true
|
||||
vim.o.background = "light"
|
||||
require('solarized').setup({})
|
||||
vim.cmd.colorscheme("solarized")
|
||||
else
|
||||
vim.o.background = "dark"
|
||||
require("vesper").setup({ transparent = true })
|
||||
vim.cmd.colorscheme("vesper")
|
||||
vim.cmd.colorscheme("gruvbox")
|
||||
end
|
||||
end, {})
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue