Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

pze/dracula-mini.nvim

 
 

Repository files navigation

preview pictures · panvimdoc

🖌️ dracula-mini.nvim

The famous Dracula (dark/light) theme for NeoVim.

✨ Features

  • 🌞 Supports Light mode
  • 🌳 Supports TreeSitter and LSP
  • 🎨 Vim terminal colors

Plugin Support

You're preferred plugin is missing ? Open an issue or, even better, open a pull request 😉.

⚡️ Requirements

  • Neovim >= 0.8.0

📦 Installation

Install the theme with your preferred package manager:

lazy

require("lazy").setup({
  {
    "towry/dracula-mini.nvim",
    lazy = false,
    priority = 1000,
    config = function()
      require("dracula-mini").setup({})
      vim.cmd.colorscheme("dracula-mini")
    end,
  },
  install = {
    colorscheme = { "dracula-mini" },
  },
});

🚀 Usage

Enable the colorscheme:

" Vim Script
colorscheme dracula-mini
-- Lua
vim.cmd.colorscheme("dracula-mini")

⚙️ Configuration

❗️ configuration needs to be set BEFORE loading the color scheme with colorscheme dracula-mini

dracula-mini.nvim will use the default options, unless you call setup.

require("dracula-mini").setup({
  -- your configuration comes here
  -- or leave it empty to use the default settings
  transparent = false, -- Enable this to disable setting the background color
  terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim
  diff = { mode = "bg" }, -- enables/disables colorful backgrounds when used in diff mode. values : [bg|fg]
  borders = true, -- Enable the border between verticaly split windows visible
  errors = { mode = "bg" }, -- Display mode for errors and diagnostics
                            -- values : [bg|fg|none]
  search = { theme = "vim" }, -- theme for highlighting search results
                              -- values : [vim|vscode]
  styles = {
    -- Style to be applied to different syntax groups
    -- Value is any valid attr-list value for `:help nvim_set_hl`
    comments = { italic = true },
    keywords = {},
    functions = {},
    variables = {},

    -- To customize lualine/bufferline
    bufferline = {
      current = {},
      modified = { italic = true },
    },
  },

  -- colorblind mode
  -- see https://github.com/EdenEast/nightfox.nvim#colorblind
  -- simulation mode has not been implemented yet.
  colorblind = {
    enable = false,
    preserve_background = false,
    severity = {
      protan = 0.0,
      deutan = 0.0,
      tritan = 0.0,
    },
  }

  --- You can override specific highlights to use other groups or a hex color
  --- function will be called with all highlights and the colorScheme table
  on_highlights = function(highlights, colors) end,
})

🤝 Integrations

🎉 Credits