Giter VIP home page Giter VIP logo

dark-notify's People

Contributors

cormacrelf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dark-notify's Issues

Append shell command in neovim?

Currently there's an option to run a shell command when calling dark-notify directly. Is that possible when inside neovim?

No ViM intro screen on startup when dark-notify is enabled

I've got dark-notify setup like thus:

  local dn = require('dark_notify')
  dn.run({
    schemes = {
      dark  = {
        colorscheme = My_theme_dark,
        lightline = My_themel_dark
      },
      light = {
        colorscheme = My_theme_light,
        lightline = My_themel_light
      }
    };
  })

  -- Draw the blinds for now
  dn.set_mode("dark")
  -- Swap to whatever it isn't currently
  dn.toggle()

  -- Match the system
  dn.update()

  -- Stop reacting to changes
  dn.stop()

  -- Start reacting again, with previous settings
  dn.run()

With the above lines, loading and automatic switching of themes work well. But (neo)vim opens up to an empty screen. The intro isn't shown. Admittedly, this is a minor issue; still annoying though.

Actual result: empty screen; no intro info.

Expected result: intro info (as shown if running command intro).

Any pointers?

Release universal/apple chip version

Amazing little thing you have got here, thanks a lot! I am wondering if you are planing to move swift branch forward, as I understand it would allow dark-notify to also run on apple chips computers.

Anything I could do to help?

-c does not run command when background process?

Simple test, something like

dark-notify -c 'touch' &

Change system theme while this is running, file is not created. But when back into fg, then you see the file dark or light appear. I would like this to work even in background process to change my kitty theme.

Opposite colour flash during nvim startup

When macOS is in dark mode and I invoke nvim, the screen flashes white.

However, if I have dn.update() in my init.vim, the opposite happens, i.e. in light mode the screen flashes black.

This only happens with colorscheme toast, presumably because it allows set background=light/set background=dark

Reproduce

  1. Install the toast colorscheme
  2. Switch to dark mode in macOS
  3. Run nvim

Breaks some other highlight plugins

First, thanks for this great plugin. I very much enjoy not having to manually toggle all vim instances when the system mode changes!

Lately I've came across at least three plugins that does something with text highlighting that does not work super great with dark-notify.

  • hlargs.nvim/ Highlight not working if dark-notify is enabled. There was a workaround found at m-demare/hlargs.nvim#37 (comment) which is to set this other plugin up in the onchange method.
  • nvim-cursorline Highlight is not working when dark-notify is enabled. However the above trick of loading this plugin in the onchange method did not work in this case.
  • vim-illuminate Same as above; the trick did not work.

Would it be possible to make this plugin more compatible by default with other plugins? Or would you have an idea on how to work around using any of the two latter plugins above together with dark-notify?

I'm on Neovim v0.7.2.

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.