Skip to content

Toggle between Light and Dark themes/schemes with minimal code.

License

Notifications You must be signed in to change notification settings

The-Plottwist/nvim-toggletheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toggle Theme

Toggle between Light and Dark themes/schemes with minimal code.

Description

The goal of this project is to be as minimal as possible.

Even though it is possible to implement a profile based solution (e.g. user may define a summer or winter profile), on the current circumstances this is not implemented. Instead, only one dark theme and light theme can be chosen.

Screenshot

showcase

Requirements

Neovim

Dependencies

None

Installation

Lazy:

"The-Plottwist/nvim-toggletheme"

Usage

Please add the below line to your init.lua after your theme setups (if you have any):

require("toggletheme").setup()

Then set your themes (only needed once):

:SetDarkTheme YOUR_THEME_HERE
:SetLightTheme YOUR_THEME_HERE

If your currently active theme is different from the chosen ones, you also need to run:

:ToggleTheme

You can view your themes with:

:ListActiveThemes

Notes

  • You may need to close and re-enter Neovim after toggling (some plugins needs refreshment)

  • You can find the config file with:

     :lua print(vim.fn.stdpath("config") .. "/default_themes.txt")
  • This plugin supports lualine refresh.

Contributing

I'm open to pull requests.

About

Toggle between Light and Dark themes/schemes with minimal code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages