-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected behavior when using Dracula theme with Neovim #263
Comments
@zenorocha @benknoble @dsifford could you help me to understand these differences between editors? |
2 things: I haven't had a chance to figure out what's going in your original post. The rest is a bit unrelated. The short answer is vim syntax is not necessarily as robust as something like vscode. Vim's depends on someone writing a good syntax file, which is hard to do right and not quite the same as a parser with good error-recovery (although that's also hard). Expect some fairly minor differences. You can try typescript syntax plugins and see if that improves anything (I think @dsifford might have a recommendation?). See a number of other closed issues in this repo on that topic. Also, from the README
That being unrelated AFAICT, let's keep the conversation on the first post, which does look odd. |
Thanks for the reply @benknoble, I really didn't know about that. I closed the other issues because it's related only to the Vim. |
I'm not 100% sure what's going on, but it's possible the tree-sitter is interfering. Other comments:
Without more information about what's changing the colors, it's hard to do much. You could try the tips in How to debug my vimrc. |
@benknoble I didn't catch the last comment:
What did you mean? Just to understand and update my configs. I'll check how to debug my configs as well. |
I was referring to parts of your vimrc (or init.vim or whatever it is). Anything in the plugin directories on the runtime path is automatically sourced after the vimrc. |
I changed all my configs, everything loading from the You can look at my config here. cc @benknoble |
Still not sure what's happening, but did you try that debug link? Essentially you want to binary search by cutting half away at a time. You can also use other things (e.g., |
If the error only shows up when you source the file, then why source the file? I honestly don't understand the problem here. I, too, use neovim, alacritty, and tmux. No issue on my end. |
I’ll try it @benknoble. ——
That’s what I’m been doing, but I just trying to figure out why it happens. Could you share your dotfiles link? @dsifford |
I also source my vimrc occasionally, but I actually have the |
Do you split your theme into something like “plug-in/theme.vim” to load just one time? @benknoble My theme is loaded like that but in a theme.lua file. |
Related to dracula/vim#263
Thanks for all your help @benknoble and @dsifford! I made some updates in my config, based on your dotfile's and now it works fine. :D If you would like to give any feedback or tips for improvements, It's public here. I'll close the issue, considering the problem has already been solved. |
Related to dracula/vim#263
What happened
I installed the package following the README.md, but I have the following behavior when source my vim configs:
What I expected to happen
I would like to have the correct theme, I think is the one that appears after source vim configs.
Machine Info
TERM
environment variable: screen-256colorAdditional Info
My theme configurations for Neovim:
The text was updated successfully, but these errors were encountered: