Mofiqul / dracula.nvim

Dracula colorscheme for neovim written in Lua
MIT License
594 stars 102 forks source link

Setting background opacity 0 to show terminal background #117

Closed luntta closed 8 months ago

luntta commented 8 months ago

I'm looking for a way to set this colorscheme's background opacity to 0. Is it possible? Tried the following in init.lua but no luck

{
    'Mofiqul/dracula.nvim',
    opts = {
        transparent = true,
    }
}
luntta commented 8 months ago

Okay, got it. In init.lua I set:

require('lazy').setup({
  {
    'Mofiqul/dracula.nvim',
    priority = 1000,
  },
})

require('dracula').setup {
  colors = {
    bg = "#282A36",
    fg = "#F8F8F2",
    selection = "#44475A",
    comment = "#6272A4",
    red = "#FF5555",
    orange = "#FFB86C",
    yellow = "#F1FA8C",
    green = "#50fa7b",
    purple = "#BD93F9",
    cyan = "#8BE9FD",
    pink = "#FF79C6",
    bright_red = "#FF6E6E",
    bright_green = "#69FF94",
    bright_yellow = "#FFFFA5",
    bright_blue = "#D6ACFF",
    bright_magenta = "#FF92DF",
    bright_cyan = "#A4FFFF",
    bright_white = "#FFFFFF",
    menu = "#21222C",
    visual = "#3E4452",
    gutter_fg = "#4B5263",
    nontext = "#3B4048",
    white = "#ABB2BF",
    black = "#191A21",
  },
  transparent_bg = true,
  italic_comment = false,
  show_end_of_buffer = false,
  overrides = {},
}

vim.cmd.colorscheme 'dracula'