[vim] Add the dracula colorscheme module

Modify the colors init script to handle it.
This commit is contained in:
Eryn Wells 2024-08-02 18:25:58 -07:00
parent 9810fa799e
commit acaf6425d5
2 changed files with 9 additions and 2 deletions

View file

@ -27,12 +27,17 @@ local function reloadColorscheme(colorschemeName)
-- off for that.
vim.g.termguicolors = not vim.env.TERM_PROGRAM == "Apple_Terminal"
if vim.g.colors_name == "witchhazel" then
local themeName = vim.g.colors_name
if themeName == nil then
vim.cmd [[
highlight! NormalFloat ctermbg=8
]]
elseif themeName == "witchhazel" then
vim.cmd [[
highlight! default link LineNr CursorLineNr
highlight! default link CursorLineNr CursorLine
]]
elseif vim.g.colors_name == "dracula" then
elseif themeName == "dracula" then
vim.cmd [[
highlight CursorLineNr guibg=#44475a
]]

View file

@ -33,6 +33,8 @@ endif
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'dracula/vim', {'as': 'dracula'}
if has('nvim')
Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/cmp-nvim-lsp'