Skip to content
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

Adding a line break or comment to the end of fields of a model break highlighting for next models #4

Open
pantharshit00 opened this issue May 18, 2020 · 3 comments

Comments

@pantharshit00
Copy link
Contributor

This is something that I wasn't able to solve in a previous attempt becuase of my inexperience with VimL.

I should give this another shot soon.

Example of the problem;
image

@yassinebridi
Copy link

This problem annoyed me for sometime, i had to go to the top of the file, to get the highlighting back.
However, i solved this by applying this answer in SO
I don't know if this can be integrated in the plugin itself.

@pantharshit00
Copy link
Contributor Author

@yassinebridi

Great to know about that. I was planning to rewrite this plugin from start because I kind of hate the current code but never got to it.

I can try adding the workaround on plugin startup for now.

@thallada
Copy link

thallada commented Mar 1, 2021

I was getting a weird issue with a very long schema.prisma file where highlights on model fields were sometimes not getting colored until I moved my cursor above or below the uncolored section. Putting this in my .vimrc fixed it for me:

autocmd FileType prisma syntax sync fromstart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants