Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

[Plugin] Display the color of color-hex-codes, color functions #45

Open
NNBnh opened this issue Apr 24, 2022 · 1 comment
Open

[Plugin] Display the color of color-hex-codes, color functions #45

NNBnh opened this issue Apr 24, 2022 · 1 comment
Labels
plugin request This belongs in a separate plugin

Comments

@NNBnh
Copy link
Contributor

NNBnh commented Apr 24, 2022

Display the color of color-hex-codes and color functions is pretty helpful for writing CSS and UI design... VScode support this feature by default, while NeoVim have an acceptable plugin vim-hexokinase that do the job:

gif

I hope Pepper could support for coloring:

  • 6 digit hex codes (#FFFFFF).
  • 3 digit hex codes (#FFF).
  • RGB functions (rgb(100%, 100%, 100%), rgb(255, 255, 255)).
  • RGBA functions (rgba( ... )).
  • HSL functions (hsl( ... )).
  • HSLA functions (hsla( ... )).

With styling options:

  • Background.
  • Foreground.
  • Virtual (display a small colored square on the right).
  • Sign column (a column next to the line numbers).

If you find this suggestion it's suitable to be built-in with the editor, feel free to label this issue with "Plugin" or "Plugin Idea".

@vamolessa
Copy link
Owner

This would be a feature for a plugin or a custom client.
However, as it is right now, there's no way for a plugin to interact with the view rendering,
so it would require some work either on the plugin system, the client/server protocol or both.

@NNBnh NNBnh changed the title Display the color of color-hex-codes, color functions [Plugin] Display the color of color-hex-codes, color functions Apr 25, 2022
@vamolessa vamolessa added the plugin request This belongs in a separate plugin label Aug 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plugin request This belongs in a separate plugin
Projects
None yet
Development

No branches or pull requests

2 participants