Skip to content

SyedFasiuddin/theme-toggle-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

theme-toggle-nvim

The inspiration to make this thing came from another plugin named dark-notify. What does that plugin do? It toggles the theme for neovim when display mode changes but it works only on MacOS.

How that plugin works is, it calls a GUI app, this GUI app doesn't actually show the GUI but is used only to know the display mode initially and to handle the event when the display mode changes.

The GUI is written in rust and uses MacOS specific libraries (cocoa and objc) to check the display mode (and also has ability to do other thing on top of it)

This plugin tries to do the same but in a cross platform way.

Installation

If you have rust installed then go ahead and install using cargo:

cargo install --git https://github.com/SyedFasiuddin/theme-toggle-nvim

Then install the plugin (using packer for example)

use({
    "SyedFasiuddin/theme-toggle-nvim",
    config = function ()
        require("theme-toggle-nvim").setup({
            colorscheme = {
                light = "delek",
                dark = "slate",
            }
        })
    end
})

Tested on these platforms

  • MacOS (arm)
  • MacOS (x86)
  • Windows 10
  • Windows 11
  • Linux

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors