{"id":13485109,"url":"https://github.com/Shougo/ddc-source-lsp","last_synced_at":"2025-03-27T17:30:49.426Z","repository":{"id":43710408,"uuid":"393347468","full_name":"Shougo/ddc-source-lsp","owner":"Shougo","description":"lsp source for ddc.vim","archived":false,"fork":false,"pushed_at":"2024-11-22T00:42:20.000Z","size":247,"stargazers_count":67,"open_issues_count":2,"forks_count":21,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-11-26T16:51:38.866Z","etag":null,"topics":["ddc-source","ddc-vim"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shougo.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-08-06T10:51:15.000Z","updated_at":"2024-11-22T00:42:23.000Z","dependencies_parsed_at":"2023-11-23T11:30:18.419Z","dependency_job_id":"88fde521-7cfa-49e3-9da6-a3ba01921af9","html_url":"https://github.com/Shougo/ddc-source-lsp","commit_stats":null,"previous_names":["shougo/ddc-source-nvim-lsp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shougo%2Fddc-source-lsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shougo%2Fddc-source-lsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shougo%2Fddc-source-lsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shougo%2Fddc-source-lsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shougo","download_url":"https://codeload.github.com/Shougo/ddc-source-lsp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245892465,"owners_count":20689506,"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"],"created_at":"2024-07-31T17:01:46.298Z","updated_at":"2025-03-27T17:30:48.918Z","avatar_url":"https://github.com/Shougo.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# ddc-source-lsp\n\nlsp completion for ddc.vim\n\n## Required\n\n### denops.vim\n\nhttps://github.com/vim-denops/denops.vim\n\n### ddc.vim\n\nhttps://github.com/Shougo/ddc.vim\n\n### LSP client\n\nSupported LSP clients are \"nvim-lsp\", \"vim-lsp\" and \"lspoints\"\n\nhttps://github.com/prabirshrestha/vim-lsp\n\nhttps://github.com/kuuote/lspoints\n\n## Configuration\n\nTo take advantage of all the features, you need to set client_capabilities.\n\n```lua\nlocal capabilities = require(\"ddc_source_lsp\").make_client_capabilities()\nrequire(\"lspconfig\").denols.setup({\n  capabilities = capabilities,\n})\n```\n\n```vim\ncall ddc#custom#patch_global('sources', ['lsp'])\ncall ddc#custom#patch_global('sourceOptions', #{\n      \\   lsp: #{\n      \\     mark: 'lsp',\n      \\     forceCompletionPattern: '\\.\\w*|:\\w*|-\u003e\\w*',\n      \\   },\n      \\ })\n\ncall ddc#custom#patch_global('sourceParams', #{\n      \\   lsp: #{\n      \\     snippetEngine: denops#callback#register({\n      \\           body -\u003e vsnip#anonymous(body)\n      \\     }),\n      \\     enableResolveItem: v:true,\n      \\     enableAdditionalTextEdit: v:true,\n      \\   }\n      \\ })\n```\n\n## Original code\n\nIt based on [cmp-core-example](https://github.com/hrsh7th/cmp-core-example).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShougo%2Fddc-source-lsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShougo%2Fddc-source-lsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShougo%2Fddc-source-lsp/lists"}