-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Improve performance for new inline
option
#80
Comments
I haven't tested this plugin prior to 0.10, but are you experiencing a flicker on textchange event? |
Yes I am working on a fix for it |
I would love to help out with the issue causing the flicker. I believe they are taking a debounced request approach as seen in the |
The flickering is happening due to the lsp integration. I have already planned a way to fix it, but I do not have the time to code it right now :( |
I've pushed a2a20e8 which fixes the flickering while editing. Please give it a try and report any bugs here for me 😄 |
I've just found a few bugs on it, will be reverting for now |
Perhaps updating on |
This makes sense to me. I usually use a color picker tool to find and view colors before putting them in code. I don't usually need to see the colors as I type them too. |
I will check this one out again this weekend |
@brenoprata10 I still get this: Screen.Recording.2024-06-23.at.14.31.19.mov |
Could you describe your auto complete setup? |
Also, could you share this template tag? |
I've pushed some code. Could you give it a try again? |
@brenoprata10 with the newer commits, the issue gets worse (most colors now flicker). I also get the following error:
I use Template tag: <template>
<div
class="relative p-8 lg:p-14 bg-[#ffffff] lg:bg-zinc-50 lg:rounded-xl shadow-md hover:shadow-xl transition-shadow duration-300 ease-in-out overflow-y-auto">
<button @click="$emit('close')"
class="absolute top-6 right-7 lg:top-8 lg:right-8 text-zinc-600 hover:text-zinc-300">
<icon name="heroicons-solid:x" class="h-6 w-6 lg:h-7 lg:w-7" />
</button>
<div class="flex flex-col divide-y-2">
<div class="flex flex-col gap-2 pb-3">
<h2 class="text-xl font-bold tracking-tight sm:text-2xl sm:leading-tight">{{ model?.title }}</h2>
<div class="flex flex-col gap-1 text-zinc-700 italic">
<h3 class="text-lg tracking-tight sm:text-xl sm:leading-tight">
{{ model?.authors.join(', ') }}
</h3>
<h4 class="text-lg tracking-tight sm:text-xl sm:leading-tight">
{{ model?.venue }} - {{ model?.year }}
</h4>
</div>
</div>
<div class="flex flex-col gap-4 pt-3">
<p class="text-zinc-600">{{ model?.abstract }}</p>
<div class="flex gap-6">
<a v-for="link in model?.links" :key="link.title" :href="link.url" :title="link.title"
class="text-zinc-600 transition hover:text-zinc-300" rel="me noopener" target="_blank">
<icon :name="link.icon" class="h-6 w-6" />
</a>
</div>
</div>
</div>
</div>
</template> |
The nil issue was fixed already. Please update the plugin. |
Would it not be possible to change the events listed here to |
Will give it a try later |
Here is another screen recording with the newer changes: Screen.Recording.2024-06-23.at.16.39.53.mov |
I have modified the autocmd as asked. Could you please check if things are still working properly? |
Now the colors will not highlight when user deletes a line with |
Maybe EDIT: Actually, I'm guessing you would need to swap |
You're right! |
I've pushed the code. Please give it a go and let me know if you find any issues |
After neovim 0.10, the new inline option seems to take a big performance hit. I need to check and polish the code to make it faster
The text was updated successfully, but these errors were encountered: