Skip to content

About

A Dracula-inspired colorscheme for Neovim

Topics

Resources

Stars

50 stars

Watchers

1 watching

Forks

Latest commit

 

History

366 Commits

Folders and files

Repository files navigation

Nightfall.nvim

A Dracula-inspired colorscheme for Neovim.

Preview

Screenshots

Nightfall

Nightfall

Deeper Night

Deeper Night

Maron

Maron

Winter

Winter

Installation

setup() is optional unless you want to change the defaults. If used, call it before :colorscheme.

lazy.nvim
{
  "2giosangmitom/nightfall.nvim",
  lazy = false,
  priority = 1000,
  opts = {},
  config = function(_, opts)
    require("nightfall").setup(opts)
    vim.cmd.colorscheme("nightfall")
  end,
}
mini.deps
local add, now = MiniDeps.add, MiniDeps.now

add({ source = "2giosangmitom/nightfall.nvim" })

now(function()
  require("nightfall").setup({})
  vim.cmd.colorscheme("nightfall")
end)
vim.pack (Neovim 0.12+)
vim.pack.add({
  "https://github.com/2giosangmitom/nightfall.nvim",
})

require("nightfall").setup({})
vim.cmd.colorscheme("nightfall")

Configuration

Default options:

require("nightfall").setup({
  transparent = false,
  terminal_colors = true,
  dim_inactive = false,
  default_integrations = true,

  styles = {
    comments = { italic = true },
    keywords = { italic = true },
  },

  integrations = {
    telescope = { enabled = true, style = "bordered" },
    treesitter = { enabled = true, context = true },
    flash = { enabled = true },
  },

  color_overrides = {},
  highlight_overrides = {},
})

See :h nightfall-config for the full list of options and integrations.

Integrations

Integrations are enabled by default and can be configured individually.

require("nightfall").setup({
  integrations = {
    flash = { enabled = false },
    telescope = {
      enabled = true,
      style = "borderless",
    },
  },
})

To start with no integrations and enable only the ones you use:

require("nightfall").setup({
  default_integrations = false,

  integrations = {
    treesitter = {
      enabled = true,
      context = true,
    },
    native_lsp = {
      enabled = true,
      semantic_tokens = true,
    },
  },
})

Overrides

require("nightfall").setup({
  -- Replace palette colors first.
  color_overrides = {
    all = { fg = "#ffffff" }, -- every flavor
    nightfall = { bg = "#0b0b14" }, -- one flavor only
  },
  highlight_overrides = {
    all = { Normal = { bg = "#120809" } }, -- static table
    -- Function receives palette; wins over `all`.
    nightfall = function(colors)
      return { Comment = { fg = colors.teal, italic = false } }
    end,
  },
})

See :h nightfall-config for details.

lualine

Nightfall ships matching lualine themes.

require("lualine").setup({
  options = {
    theme = "nightfall",
  },
})

Extras

Matching themes for other tools are available under extras/.

Tool File
Alacritty extras/alacritty/<flavor>.toml
lazygit extras/lazygit/<flavor>.yaml
yazi extras/yazi/<flavor>.toml

Contributing

Issues and pull requests are welcome.

Thanks to all the amazing contributors 💛

Contributors

About

A Dracula-inspired colorscheme for Neovim

Topics

Resources

Stars

50 stars

Watchers

1 watching

Forks

Sponsor this project

Used by

Contributors

Languages