Skip to content

A neovim plugin for interfacing with the freedesktop dark mode standard

License

Notifications You must be signed in to change notification settings

4e554c4c/darkman.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Darkman.nvim

Darkman.nvim is a neovim plugin written in Golang, designed to interface with the Freedesktop Dark-mode standard. It is named after and integrates with darkman, a daemon which implements this standard. However, the plugin should work on all compliant desktop environments (including Gnome and KDE).

Requirements

This plugin is currently in development, and no versions have been released. Thus, to compile darkman.nvim a go compiler is required.

Installation

Using packer.nvim

use {
  '4e554c4c/darkman.nvim',
  run = 'go build -o bin/darkman.nvim',
  config = function()
    require 'darkman'.setup()
  end,
}

Configuration

setup takes a dictionary of the following values (and defaults)

{
  change_background = true,
  send_user_event = false,
  colorscheme = nil, -- can be { dark = "x", light = "y" }
}

If change_background is true, background will be automatically set to light or dark. Please note that you can add extra functionality by listening to the OptionSet background autocmd event.

If you would not like darkman.nvim to set background, you may set send_user_event=true. In which case the User DarkMode or User LightMode events will be triggered instead.

If the colorscheme option is set to a table with dark and light keys, the colorschemes given will be set automatically.

About

A neovim plugin for interfacing with the freedesktop dark mode standard

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •