arejano / dracula.nvim

Dracula colorscheme for neovim written in Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🧛‍♂️ dracula.nvim

Dracula colorscheme for NEOVIM written in Lua

TypeScript and NvimTree

Lua

✔️ Requirements

  • Neovim >= 0.5.0
  • Treesitter (optional)

#️ Supported Plugins

⬇️ Installation

Install via package manager

-- Using Packer:
use 'Mofiqul/dracula.nvim'
" Using Vim-Plug:
Plug 'Mofiqul/dracula.nvim'

🚀 Usage

-- Lua:
vim.cmd[[colorscheme dracula]]
" Vim-Script:
colorscheme dracula

If you are using lualine, you can also enable the provided theme:

Make sure to set theme as 'dracula-nvim' as dracula already exists in lualine built in themes

require('lualine').setup {
  options = {
    -- ... 
    theme = 'dracula-nvim'
    -- ... 
  }
}'

🔧 Configuration

If you're using lua

-- show the '~' characters after the end of buffers
vim.g.dracula_show_end_of_buffer = true
-- use transparent background
vim.g.dracula_transparent_bg = true
-- set custom lualine background color
vim.g.dracula_lualine_bg_color = "#44475a"

The same works in viml

" show the '~' characters after the end of buffers
let g:dracula_show_end_of_buffer = 1
" use transparent background
let g:dracula_transparent_bg = 1
" set custom lualine background color
let g:dracula_lualine_bg_color = "#44475a"

🎨 Importing colors for other usage

require('dracula').colors()

This will return the folowing table

colors

About

Dracula colorscheme for neovim written in Lua

License:MIT License


Languages

Language:Lua 100.0%