From acaf6425d529998833d0b9ff1e1c0dd26458e93d Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 2 Aug 2024 18:25:58 -0700 Subject: [PATCH] [vim] Add the dracula colorscheme module Modify the colors init script to handle it. --- config/nvim/lua/colors.lua | 9 +++++++-- vim/plugins.vim | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/config/nvim/lua/colors.lua b/config/nvim/lua/colors.lua index 8c29f26..e763c1b 100644 --- a/config/nvim/lua/colors.lua +++ b/config/nvim/lua/colors.lua @@ -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 ]] diff --git a/vim/plugins.vim b/vim/plugins.vim index 752cec9..2c9d29c 100644 --- a/vim/plugins.vim +++ b/vim/plugins.vim @@ -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'