2giosangmitom/nightfall.nvim

github github
colorscheme
stars 50
issues 0
subscribers 1
forks 1
CREATED

UPDATED


Nightfall.nvim

A Dracula-inspired colorscheme for Neovim.

Preview

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.

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

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

now(function()
  require("nightfall").setup({})
  vim.cmd.colorscheme("nightfall")
end)
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