Skip to content

flashes during startup #17

@tomspeak

Description

@tomspeak
return {
  'f-person/auto-dark-mode.nvim',
  priority = 1000,
  lazy = false,

  config = {
    update_interval = 30000,
    set_dark_mode = function()
      vim.api.nvim_set_option('background', 'dark')
    end,
    set_light_mode = function()
      vim.api.nvim_set_option('background', 'light')
    end,
  },
}

With this configuration, if I am in light mode, on startup it will briefly flash in dark mode, then switch to light mode.

Is there a way for me to make it set to the correct value on startup and not have this flash?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions