`:CccPick` removes character in front of color & adds Alpha
chrisgrieser opened this issue · 4 comments
Not a question
- This is not a question. If you have a question, use discussions.
Description
:CccPick
removes character in front of the color (tested it, it's not spaces, but any character). It also adds alpha by default now.
Both behaviors did not occur in the latest commit from a few days ago.
Environments
macOS 12.5.1 (M1)
neovim 0.8.0 (homebrew)
Minimal reproducible full config
The minimal.vim
file does not work. I removed my entire nvim config, and placed nothing but the linked minimal.vim
file in there. I also removed all plugins from ~/.local/share/nvim/site/pack/packer
. Upon calling :CccPick
it errors: E492: Not an editor command: CccPick
.
So I tried this as minimal config:
opt.termguicolors = true
local ccc = require("ccc")
ccc.setup{}
Steps to reproduce
- use the minimal config from above
- use
:CccPick
Expected behavior
using the picker should not remove preceding characters.
Actual behavior
using the picker removes the preceding character.
Additional context
After a bunch of trial and error, I could figure out that explicitly disabling LSP for highlighting (highlighter.lsp
set to false) seems to fix this issue.
minimal.vim works in my environment. My environment is linux, so I guess it would work on mac. By the way, I use nvim -u utils/minimal.vim
to start.
Fixed in f1ca498.
thanks! the removal of the preceding character has been fixed by f1ca498
, but the alpha is still added by default
As mentioned earlier, the display of the alpha value is not a bug and cannot be automatically determined, so adding an option to control the behavior is the limit.
I see, yeah in that case this issue can be regarded as fixed I guess. I'll open a separate FR for the alpha output