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

Bug: Colorify not removing visual representation of color #364

Open
Nanito111 opened this issue Oct 12, 2024 · 5 comments
Open

Bug: Colorify not removing visual representation of color #364

Nanito111 opened this issue Oct 12, 2024 · 5 comments

Comments

@Nanito111
Copy link

Describe the bug
Colorify not removing visual representation of color after removing the color hex.

To Reproduce
Write hex color, Colorify showing visual representation of color, remove hex color.

Expected behavior
Visual representation of color getting removed.

Screenshots
https://github.com/user-attachments/assets/068762e3-5651-4af8-85b2-439ae1187b8b

Operating System:
Fedora Linux 40 (KDE Plasma) x86_64

Neovim Version:
NVIM v0.10.1
Build type: RelWithDebInfo
LuaJIT 2.1.1720049189

@siduck
Copy link
Member

siduck commented Oct 12, 2024

good bug, will look on it today!

@siduck
Copy link
Member

siduck commented Oct 12, 2024

till then use the bg mode of colorify. read :h nvui.colorify

@siduck
Copy link
Member

siduck commented Oct 12, 2024

unable to reproduce, u sure u are on latest commit of ui plugin?

simplescreenrecorder-2024-10-12_17.07.05.mp4

@Nanito111
Copy link
Author

image
I confirm that im on last commit of UI plugin.

I check that it doens't happen with lua files. I also check with css files like u did and it happens.

@Nanito111
Copy link
Author

Error executing vim.schedule lua callback: ...local/share/nvim/lazy/ui/lua/nvchad/colorify/methods.lua:67: Invalid 'end_col': out of range                      
stack traceback:                                                                                                                                                
        [C]: in function 'set_extmark'                                                                                                                          
        ...local/share/nvim/lazy/ui/lua/nvchad/colorify/methods.lua:67: in function 'handler'                                                                   
        /usr/share/nvim/runtime/lua/vim/lsp/client.lua:687: in function ''                                                                                      
        vim/_editor.lua: in function <vim/_editor.lua:0>

I got this error log

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

2 participants