{"id":13594100,"url":"https://github.com/hrsh7th/cmp-cmdline","last_synced_at":"2025-04-04T11:11:46.361Z","repository":{"id":40649876,"uuid":"419802757","full_name":"hrsh7th/cmp-cmdline","owner":"hrsh7th","description":"nvim-cmp source for vim's cmdline","archived":false,"fork":false,"pushed_at":"2024-04-27T09:13:44.000Z","size":27,"stargazers_count":587,"open_issues_count":65,"forks_count":48,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-28T10:06:23.559Z","etag":null,"topics":["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/hrsh7th.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":"2021-10-21T16:43:05.000Z","updated_at":"2025-03-27T04:48:30.000Z","dependencies_parsed_at":"2024-11-06T16:38:46.736Z","dependency_job_id":null,"html_url":"https://github.com/hrsh7th/cmp-cmdline","commit_stats":{"total_commits":30,"total_committers":9,"mean_commits":"3.3333333333333335","dds":0.5666666666666667,"last_synced_commit":"8fcc934a52af96120fe26358985c10c035984b53"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrsh7th%2Fcmp-cmdline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrsh7th%2Fcmp-cmdline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrsh7th%2Fcmp-cmdline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrsh7th%2Fcmp-cmdline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrsh7th","download_url":"https://codeload.github.com/hrsh7th/cmp-cmdline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"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":["nvim-cmp"],"created_at":"2024-08-01T16:01:28.662Z","updated_at":"2025-04-04T11:11:46.340Z","avatar_url":"https://github.com/hrsh7th.png","language":"Lua","readme":"# cmp-cmdline\n\nnvim-cmp source for vim's cmdline.\n\n# Setup\n\nCompletions for `/` search based on current buffer:\n```lua\n    -- `/` cmdline setup.\n    cmp.setup.cmdline('/', {\n      mapping = cmp.mapping.preset.cmdline(),\n      sources = {\n        { name = 'buffer' }\n      }\n    })\n```\n\nCompletions for command mode:\n```lua\n    -- `:` cmdline setup.\n    cmp.setup.cmdline(':', {\n      mapping = cmp.mapping.preset.cmdline(),\n      sources = cmp.config.sources({\n        { name = 'path' }\n      }, {\n        {\n          name = 'cmdline',\n          option = {\n            ignore_cmds = { 'Man', '!' }\n          }\n        }\n      })\n    })\n```\n\nFor the buffer source to work, [cmp-buffer](https://github.com/hrsh7th/cmp-buffer) is needed.\n\n\n# Option\n\n### ignore_cmds: string[]\nDefault: `{ \"Man\", \"!\" }`\n\nYou can specify ignore command name.\n\n### treat_trailing_slash: boolean\nDefault: `true`\n\n`vim.fn.getcompletion` can return path items.\nunfortunately, that items has trailing slash so we don't narrowing with next directory with pressing `/`.\n\nif you turnd on this option, `cmp-cmdline` removes trailing slash automatically.\n","funding_links":[],"categories":["Lua","Completion"],"sub_categories":["Diagnostics"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrsh7th%2Fcmp-cmdline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrsh7th%2Fcmp-cmdline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrsh7th%2Fcmp-cmdline/lists"}