dracula / vim

🧛🏻‍♂️ Dark theme for Vim

Home Page:https://draculatheme.com/vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Colors of Dracula theme are off.

marc-marcos opened this issue · comments

What happened

I was trying to install the vim theme using vim-plug and the colors just feel off, specially the backgrond. Already tried setting termguicolors but all the syntax highlighting disappeared.

What I expected to happen

I expected to get the normal theme.

Screenshot

WhatsApp Image 2022-02-21 at 14 54 20

Machine Info

  • Vim type (vim/gvim/neovim): vim
  • Vim version: 8.2
  • OS: Arch
  • Terminal/Terminal Emulator/VTE: Alacritty
  • TERM environment variable: (don't really know mb)

Additional Info

To find your TERM, you can usually printenv TERM in a shell, or :echo $TERM in Vim.

Alacritty does support truecolor, but you may need to have an up-to-date terminfo and corresponding TERM set.

The background can be adjusted slightly or dramatically depending on your preference. See :help dracula.

I had the same issue, the fix was to add this snippet of code to my .vimrc:

if (has("termguicolors"))
  set termguicolors
endif

Note that @FinnTheTurkey's solution will only work for terminals which support 24-bit color (among them, Alacritty).

Closing this (looks stale, and I think solutions were mentioned) with a nod to g:dracula_colorterm.

Hey guys,
I faced the same issue on my macos:

image

$> echo $TERM
xterm-256color
$> vim --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Aug 17 2022 21:21:22)
macOS version - arm64
Included patches: 1-217
Compiled by root@apple.com
Normal version without GUI.  Features included (+) or not (-):
+acl               +file_in_path      -mouse_urxvt       -tag_any_white
-arabic            +find_in_path      +mouse_xterm       -tcl
+autocmd           +float             +multi_byte        -termguicolors
+autochdir         +folding           +multi_lang        +terminal
-autoservername    -footer            -mzscheme          +terminfo
-balloon_eval      +fork()            +netbeans_intg     +termresponse
-balloon_eval_term -gettext           +num64             +textobjects
-browse            -hangul_input      +packages          +textprop
+builtin_terms     +iconv             +path_extra        +timers
+byte_offset       +insert_expand     -perl              +title
+channel           +ipv6              +persistent_undo   -toolbar
+cindent           +job               +popupwin          +user_commands
-clientserver      +jumplist          +postscript        -vartabs
+clipboard         -keymap            +printer           +vertsplit
+cmdline_compl     +lambda            -profile           +vim9script
+cmdline_hist      -langmap           -python            +viminfo
+cmdline_info      +libcall           -python3           +virtualedit
+comments          +linebreak         +quickfix          +visual
-conceal           +lispindent        +reltime           +visualextra
+cryptv            +listcmds          -rightleft         +vreplace
+cscope            +localmap          +ruby/dyn          +wildignore
+cursorbind        -lua               +scrollbind        +wildmenu
+cursorshape       +menu              +signs             +windows
+dialog_con        +mksession         +smartindent       +writebackup
+diff              +modify_fname      -sodium            -X11
+digraphs          +mouse             -sound             -xfontset
-dnd               -mouseshape        +spell             -xim
-ebcdic            -mouse_dec         +startuptime       -xpm
-emacs_tags        -mouse_gpm         +statusline        -xsmp
+eval              -mouse_jsbterm     -sun_workshop      -xterm_clipboard
+ex_extra          -mouse_netterm     +syntax            -xterm_save
+extra_search      +mouse_sgr         +tag_binary
-farsi             -mouse_sysmouse    -tag_old_static
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -o vim        -lm -lncurses  -liconv -framework Cocoa

Dracula installed into ~/.vim/pack/themes/start/dracula

And what's interesting :help dracula shows me E149: Sorry, no help for dracula. Looks like the problem with installation.

@VERGILIY that looks unrelated to this issue (I don't see how they are the same?). If you want to continue discussion, let's open a new one. I'm going to close this one like I said I would.

P.S. Try :helptags ALL then :help dracula.