{"id":25802950,"url":"https://github.com/thomas-hiron/cmp-twig-constants","last_synced_at":"2026-04-17T04:03:38.415Z","repository":{"id":232071740,"uuid":"783393894","full_name":"thomas-hiron/cmp-twig-constants","owner":"thomas-hiron","description":"nvim-cmp source for PHP constants autocompletion in twig","archived":false,"fork":false,"pushed_at":"2025-02-01T13:03:53.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T23:21:12.903Z","etag":null,"topics":["neovim","neovim-plugin","neovim-plugin-lua","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/thomas-hiron.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":"2024-04-07T19:08:44.000Z","updated_at":"2025-02-01T13:03:57.000Z","dependencies_parsed_at":"2024-04-21T10:32:50.305Z","dependency_job_id":"bee39bcd-7298-41aa-84de-2d2c7dda9347","html_url":"https://github.com/thomas-hiron/cmp-twig-constants","commit_stats":null,"previous_names":["thomas-hiron/twig-constants"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thomas-hiron/cmp-twig-constants","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-hiron%2Fcmp-twig-constants","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-hiron%2Fcmp-twig-constants/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-hiron%2Fcmp-twig-constants/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-hiron%2Fcmp-twig-constants/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomas-hiron","download_url":"https://codeload.github.com/thomas-hiron/cmp-twig-constants/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas-hiron%2Fcmp-twig-constants/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31914462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["neovim","neovim-plugin","neovim-plugin-lua","nvim-cmp"],"created_at":"2025-02-27T17:36:56.153Z","updated_at":"2026-04-17T04:03:38.410Z","avatar_url":"https://github.com/thomas-hiron.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmp-twig-constants\n \n### ⚠️  This repo has been moved ⚠️\n\nThis code has been merged to https://github.com/thomas-hiron/cmp-symfony.\n\n---\n\n[nvim-cmp](https://github.com/hrsh7th/nvim-cmp) source for twig.  \nThis plugin autocompletes PHP constants located in src directory for twig.  \n\n![Autocomplete](./docs/autocomplete.png)\n\nOutput is:  \n```twig\nconstant('App\\\\Voter\\\\MyVoter::CAN_EDIT')\n```\n\nConstants are refreshed every 60 seconds.\n\n## Prerequisites\n- [ripgrep](https://github.com/BurntSushi/ripgrep) to search for \nPHP constants.\n\n## Setup\n\n```lua\nrequire('cmp').setup({\n  sources = {\n    { name = 'twig_constants' },\n  },\n})\n```\n\n## Triggers\n\nThe plugin is activated for `twig` filetype only.  \nThe trigger character is a single quote, and the line must contains `constant`.\n\n## Configuration\n\nThere is no configuration at the moment.\n\n## Todo\n\n- Make sure cursor is between quotes\n- Follow composer autoload\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomas-hiron%2Fcmp-twig-constants","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomas-hiron%2Fcmp-twig-constants","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomas-hiron%2Fcmp-twig-constants/lists"}