{"id":26925027,"url":"https://github.com/farias-hecdin/csscolorconverter","last_synced_at":"2025-04-02T02:29:43.830Z","repository":{"id":211028008,"uuid":"727826997","full_name":"farias-hecdin/CSSColorConverter","owner":"farias-hecdin","description":"📌 A Neovim plugin that facilitates the identification of a HEX, RGB, HSL, or LCH color name and its conversion.","archived":false,"fork":false,"pushed_at":"2024-05-12T13:47:39.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-12T14:45:25.295Z","etag":null,"topics":["lua","nvim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farias-hecdin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-05T16:50:17.000Z","updated_at":"2024-05-12T14:45:29.372Z","dependencies_parsed_at":"2023-12-31T03:38:22.246Z","dependency_job_id":"cd235d66-57bd-4002-930f-20624c898209","html_url":"https://github.com/farias-hecdin/CSSColorConverter","commit_stats":null,"previous_names":["farias-hecdin/colorcommander.nvim","farias-hecdin/csscolorconverter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farias-hecdin%2FCSSColorConverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farias-hecdin%2FCSSColorConverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farias-hecdin%2FCSSColorConverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farias-hecdin%2FCSSColorConverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farias-hecdin","download_url":"https://codeload.github.com/farias-hecdin/CSSColorConverter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246743301,"owners_count":20826503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","nvim-plugin"],"created_at":"2025-04-02T02:29:42.698Z","updated_at":"2025-04-02T02:29:43.815Z","avatar_url":"https://github.com/farias-hecdin.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e Translate this file into your native language using `Google Translate` or a [similar service](https://immersivetranslate.com).\n\n# CSSColorConverter\n\nEste plugin para Neovim proporciona herramientas para trabajar con diferentes modelos de color, incluyendo `hex`, `rgb`, `hsl` y `lch`. Con él, puedes convertir colores entre estos formatos, visualizar su valor en un texto virtual y determinar su nombre correspondiente.\n\n## Requerimientos\n\n* [`Neovim`](https://github.com/neovim/neovim): Versión 0.7 o superior.\n* [`plenary.nvim`](https://github.com/nvim-lua/plenary.nvim): Para interactua con curl desde Neovim.\n* [`curl`](https://curl.se) Para descargar la lista de nombres de colores.\n\n### Instalación\n\nUsando [`folke/lazy.nvim`](https://github.com/folke/lazy.nvim):\n\n```lua\n{\n    'farias-hecdin/Colorformat.nvim',\n    config = true,\n    -- If you want to configure some options, replace the previous line with:\n    -- config = function()\n    -- end,\n}\n```\n\n## 🗒️ Configuración\n\nEstas son las opciones de configuración predeterminadas:\n\n```lua\nrequire('CSSColorConverter').setup({\n  display_virtual_text = true, -- \u003cboolean\u003e Display virtual text for color variables.\n  target_color_format = \"hex\", -- \u003cstring\u003e Format for target color (e.g. \"hex\" for hexadecimal).\n  disable_keymaps = false, -- \u003cboolean\u003e Indicates whether keymaps are disabled.\n})\n```\n\n### Comandos y atajos de teclado\n\n| API                           | Descripción                         |\n| ----------------------------- | ----------------------------------- |\n| `get_color_name()`            | Identificar el nombre del color |\n| `get_color_conversion('hex')` | Convertir el color a `hex` |\n| `get_color_conversion('rgb')` | Convertir el color a `rgb` |\n| `get_color_conversion('hsl')` | Convertir el color a `hsl` |\n| `get_color_conversion('lch')` | Convertir el color a `lch` |\n\nEstos son los atajos de teclado predeterminados:\n\n```lua\nlocal keymaps_opts = {buffer = 0, silent = true}\n\nvim.keymap.set('v', '\u003cleader\u003ecn', \":lua require('CSSColorConverter').get_color_name()\u003cCR\u003e\", keymaps_opts)\nvim.keymap.set('v', '\u003cleader\u003ec#', \":lua require('CSSColorConverter').get_color_conversion('hex')\u003cCR\u003e\", keymaps_opts)\nvim.keymap.set('v', '\u003cleader\u003ech', \":lua require('CSSColorConverter').get_color_conversion('hsl')\u003cCR\u003e\", keymaps_opts)\nvim.keymap.set('v', '\u003cleader\u003ecl', \":lua require('CSSColorConverter').get_color_conversion('lch')\u003cCR\u003e\", keymaps_opts)\nvim.keymap.set('v', '\u003cleader\u003ecr', \":lua require('CSSColorConverter').get_color_conversion('rgb')\u003cCR\u003e\", keymaps_opts)\n```\n\nPuedes desactivar los atajos de teclado predeterminados estableciendo la opción `disable_keymaps` en `true`\n\n## 🗒️ Agradecimientos a\n\n* [`jsongerber/nvim-px-to-rem`](https://github.com/jsongerber/nvim-px-to-rem): Ha sido la base y fuente de inspiración para este plugin.\n* [`meodai/color-names`](https://github.com/meodai/color-names): Por proveer la lista de nombres de colores.\n\n## 🗒️ Plugins similares\n\n[`colortils.nvim`](https://github.com/nvim-colortils/colortils.nvim)\n\n## 🛡️ Licencia\n\nCSSColorConverter está bajo la licencia MIT. Consulta el archivo `LICENSE` para obtener más información.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarias-hecdin%2Fcsscolorconverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarias-hecdin%2Fcsscolorconverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarias-hecdin%2Fcsscolorconverter/lists"}