-
Notifications
You must be signed in to change notification settings - Fork 456
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
Files in after get loaded even when not using Dracula #83
Comments
Note that the difficulty is they are automatically sourced by vim when on I almost wonder if it wouldn't make more sense to move the stuff to I'm not sure what the best answer is, to be honest. Other popular schemes like Gruvbox, Solarized, and Jellybeans seem to lump all of it in the |
This is just how vim works. If during your vim session you edit a css file one time, the css groups and highlight regions remain loaded for the duration of your vim session. The same for all other languages. That's why we do adjustments in ftplugins -- because it allows us to override changes between syntaxes on the fly without it being an issue. I don't think we should change the way that we're currently doing things just so that a few people can have the ability to hot swap their colorschemes on the fly without some of the dracula adjustments carrying over. If they want a fresh slate, just reload vim. |
In my example above, I'm not hot-swapping. I actually set the colorscheme in my vimrc, but because Dracula was on the runtimepath some of it's adjustments came into effect. This to me is a bug, esp. since the Dracula groups are all cleared. RE: css example, I understand that and agree. If that's a non-issue, then perhaps the autoload is a potential solution that allows us to keep the split file structure without always loading the files irrespective of the colorscheme. |
I think we should just add a check to the top of all the files that checks for |
It would solve the issue for anybody who doesn't swap colorschemes during a session, which I think was your point. I'm still not necessarily thrilled about the idea of dracula not playing nice with other schemes (i.e. 'hot-swapping' is very broken), but I don't personally swap often anyways. |
most color schemes do a |
set background=dark
As I said, I don't swap often, but it could be a pain point for some users (and might prove to be if I'm writing a custom scheme and then sourcing it to check it out--without a special vimrc to not load dracula, the plugin files get in the way). |
I still maintain that adding checks in the ftplugin should fix the issues you're describing. Busy with other things at the moment, I can fix later on this evening or tomorrow |
Alright. We'll try it. |
What happened
Start vim as follows:
Once inside, do
Note that it is linked to a Dracula group.
But
:colorscheme
reportsdefault
.What I expected to happen
Without enabling dracula, I get
vimOption xxx links to PreProc
When my colorscheme is not dracula, highlight groups should not be linked to Dracula groups.
Screenshot
Machine Info
vim
/gvim
/neovim
): vimTERM
environment variable: xterm-256colorAdditional Info
Part of the fix will be not using
after
directories, as they always get loaded by vim when on the runtimepath. We want to only be included when doing:colorscheme dracula
.The text was updated successfully, but these errors were encountered: