{"id":13477403,"url":"https://github.com/Jezda1337/nvim-html-css","last_synced_at":"2025-03-27T05:31:37.820Z","repository":{"id":173915576,"uuid":"651167218","full_name":"Jezda1337/nvim-html-css","owner":"Jezda1337","description":"CSS Intellisense for HTML","archived":false,"fork":false,"pushed_at":"2025-02-23T16:25:11.000Z","size":144,"stargazers_count":158,"open_issues_count":3,"forks_count":13,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-23T16:32:32.031Z","etag":null,"topics":["html-css-intellisense","neovim","neovim-plugin","nvim","nvim-cmp"],"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/Jezda1337.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-06-08T16:38:36.000Z","updated_at":"2025-02-23T03:43:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4068b0d-881d-440c-82ae-eceda37ebcc9","html_url":"https://github.com/Jezda1337/nvim-html-css","commit_stats":null,"previous_names":["jezda1337/nvim-html-css"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jezda1337%2Fnvim-html-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jezda1337%2Fnvim-html-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jezda1337%2Fnvim-html-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jezda1337%2Fnvim-html-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jezda1337","download_url":"https://codeload.github.com/Jezda1337/nvim-html-css/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791594,"owners_count":20672666,"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":["html-css-intellisense","neovim","neovim-plugin","nvim","nvim-cmp"],"created_at":"2024-07-31T16:01:42.318Z","updated_at":"2025-03-27T05:31:37.811Z","avatar_url":"https://github.com/Jezda1337.png","language":"Lua","readme":"# ☕ Neovim HTML, CSS Support\n\n\u003e [!WARNING]\n\u003e This plugin is under construction.\n\nNeovim CSS Intellisense for HTML\n\n#### HTML id and class attribute completion for Neovim written in Lua.\n\n\u003cbr /\u003e\n\n![image](https://github.com/user-attachments/assets/c2e49c08-ca03-42f4-a973-6330ae211da3)\n\n## ✨ Features\n\n- HTML `id` and `class` attribute completion.\n- Supports linked and `internal` style sheets.\n- Supports additional `external` style sheets.\n\n## ⚡️ Requirements\n\n- Neovim 0.10+\n- curl 8.7+\n\n## 📦 Installation\n\n### Lazy\n\n```lua\nreturn require(\"lazy\").setup({\n    {\n        \"hrsh7th/nvim-cmp\",\n        dependencies = {\n            \"Jezda1337/nvim-html-css\" -- add it as dependencies of `nvim-cmp` or standalone plugin\n        },\n        opts = {\n            sources = {\n                {\n                    name = \"html-css\",\n                    option = {\n                        enable_on = { \"html\" }, -- html is enabled by default\n                        notify = false,\n                        documentation = {\n                            auto_show = true, -- show documentation on select\n                        },\n                        -- add any external scss like one below\n                        style_sheets = {\n                            \"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css\",\n                            \"https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css\",\n                        },\n                    },\n                },\n            },\n        },\n    },\n})\n```\n\n## ⚙ Default Configuration\n\n```lua\noption = {\n    enable_on = { \"html\" },\n    notify = false,\n    documentation = {\n        auto_show = true,\n    },\n    style_sheets = {}\n}\n```\n\n## 🤩 Pretty Menu Items\n\nSetting the formatter this way, you will get the file name with an extension in your cmp menu, so you know from which file that class is coming.\n\n```lua\nrequire(\"cmp\").setup({\n    -- ...\n    formatting = {\n        format = function(entry, vim_item)\n            local source = entry.source.name\n            if source == \"html-css\" then\n                vim_item.menu = \"[\" .. entry.completion_item.provider .. \"]\" or \"[html-css]\"\n            end\n            return vim_item\n        end\n    }\n    -- ...\n})\n```\n","funding_links":[],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJezda1337%2Fnvim-html-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJezda1337%2Fnvim-html-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJezda1337%2Fnvim-html-css/lists"}