{"id":13485086,"url":"https://github.com/octaltree/cmp-look","last_synced_at":"2025-04-14T16:16:54.334Z","repository":{"id":36998537,"uuid":"394183756","full_name":"octaltree/cmp-look","owner":"octaltree","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-24T08:01:57.000Z","size":36,"stargazers_count":94,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T16:16:36.273Z","etag":null,"topics":["ddc-source","ddc-vim","nvim-cmp"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/octaltree.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}},"created_at":"2021-08-09T06:56:24.000Z","updated_at":"2025-03-06T19:01:11.000Z","dependencies_parsed_at":"2024-01-13T19:21:53.895Z","dependency_job_id":"6292b921-d746-47e4-a2f9-63e74823a686","html_url":"https://github.com/octaltree/cmp-look","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaltree%2Fcmp-look","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaltree%2Fcmp-look/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaltree%2Fcmp-look/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaltree%2Fcmp-look/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octaltree","download_url":"https://codeload.github.com/octaltree/cmp-look/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248914117,"owners_count":21182359,"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":["ddc-source","ddc-vim","nvim-cmp"],"created_at":"2024-07-31T17:01:45.441Z","updated_at":"2025-04-14T16:16:54.299Z","avatar_url":"https://github.com/octaltree.png","language":"TypeScript","readme":"# look source for [nvim-cmp](https://github.com/hrsh7th/nvim-cmp)\n\nThis is [look](https://man7.org/linux/man-pages/man1/look.1.html) source for\n[hrsh7th/nvim-cmp](https://github.com/hrsh7th/nvim-cmp) and\n[Shougo/ddc.vim](https://github.com/Shougo/ddc.vim) inspired by\n[ujihisa/neco-look](https://github.com/ujihisa/neco-look).\n\n![http://gyazo.com/c21c8201fa7a571c7665bc7455d88631.png](http://gyazo.com/c21c8201fa7a571c7665bc7455d88631.png)\n\n## For nvim-cmp\n\n```lua\nrequire('cmp').setup({\n    sources = {\n        {\n            name = 'look',\n            keyword_length = 2,\n            option = {\n                convert_case = true,\n                loud = true\n                --dict = '/usr/share/dict/words'\n            }\n        }\n    }\n})\n```\n\n## For ddc\n\n```vim\ncall ddc#custom#patch_global('sources', ['look'])\ncall ddc#custom#patch_global('sourceOptions', {\n      \\ '_': {'matchers': ['matcher_head']},\n      \\ 'look': {'converters': ['loud', 'matcher_head'], 'matchers': [], 'mark': 'l', 'isVolatile': v:true}\n      \\ })\ncall ddc#custom#patch_global('sourceParams', {\n      \\ 'look': {\n      \\   'convertCase': v:true,\n      \\   'dict': v:null\n      \\ }})\n```\n\n## Configuration options\n\n### convert_case cmp/ convertCase ddc (type: boolean)\n\nConvert the candidates to match the input characters in the case.\n\n### loud cmp (type: boolean)\n\nConvert the candidates to UPPERCASE if all input characters are uppercase.\n\n### loud ddc (converter)\n\nA converter instead of option for ddc\n\n### dict cmp ddc (type: null|string)\n\nnull or specify the dict file path\n\n### dflag cmp ddc (type: boolean)\n\n\"-d\" is passed Transparently to look. Remove non-alphanumeric characters from\nkeywords and recalculate keyword_length.\n\n\u003e Use normal dictionary character set and order, i.e., only blanks and\n\u003e alphanumeric characters are compared. This is on by default if no file is\n\u003e specified.\n\n### fflag cmp ddc (type: boolean)\n\n\"-f\" is passed Transparently to look.\n\n\u003e Ignore the case of alphabetic characters. This is on by default if no file is\n\u003e specified.\n\n## Breaking Changes\n\n- 2022-06-23 Do not pass fflag when the dictionary is set.\n\n## Alternatives\n\n- [ujihisa/neco-look](https://github.com/ujihisa/neco-look)\n- [matsui54/ddc-dictionary](https://github.com/matsui54/ddc-dictionary)\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctaltree%2Fcmp-look","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctaltree%2Fcmp-look","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctaltree%2Fcmp-look/lists"}