{"id":24623171,"url":"https://github.com/jpeach/cscope-lsp","last_synced_at":"2025-05-07T15:23:24.507Z","repository":{"id":49178388,"uuid":"133608859","full_name":"jpeach/cscope-lsp","owner":"jpeach","description":"cscope line interface for cquery","archived":false,"fork":false,"pushed_at":"2023-02-25T06:01:03.000Z","size":50,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T11:21:50.700Z","etag":null,"topics":["cscope","language-server-protocol","lsp","vim"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpeach.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":"2018-05-16T04:07:03.000Z","updated_at":"2025-03-25T08:46:37.000Z","dependencies_parsed_at":"2024-06-20T12:01:44.133Z","dependency_job_id":"e4bc3f2d-57c6-4040-aa4a-8d8cbe6936f3","html_url":"https://github.com/jpeach/cscope-lsp","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/jpeach%2Fcscope-lsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpeach%2Fcscope-lsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpeach%2Fcscope-lsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpeach%2Fcscope-lsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpeach","download_url":"https://codeload.github.com/jpeach/cscope-lsp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252903235,"owners_count":21822398,"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":["cscope","language-server-protocol","lsp","vim"],"created_at":"2025-01-25T03:33:53.045Z","updated_at":"2025-05-07T15:23:24.487Z","avatar_url":"https://github.com/jpeach.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cscope-lsp\n\ncscope line interface for a [Language Server](https://langserver.org).\n\n## Vim Integration\n\nTo use `cscope-lsp` in your vim session, you need to do a bit of\nconfiguration:\n\n```vim\n\" Return the current cursor position as \"file:line:col\"\nfunction! s:position()\n    return expand('%') . ':' . line('.') . ':' . col('.')\nendfunction\n\nif has(\"cscope\")\n\n    :execute ':set cscopeprg=cscope-lsp'\n\n    \" The file argument to 'add' is ignored by cscope-lsp but\n    \" required by the vim cscope integration. Any file name\n    \" will do here.\n    :execute ':cs add .gitignore'\n\n    \" cs: Find symbol\n    map \u003cLeader\u003ecs :cs find s \u003cC-R\u003e=\u003cSID\u003eposition()\u003cCR\u003e\u003cCR\u003e\n\n    \" cg: Find definition\n    map \u003cLeader\u003ecg :cs find g \u003cC-R\u003e=\u003cSID\u003eposition()\u003cCR\u003e\u003cCR\u003e\n\n    \" cc: Find callers\n    map \u003cLeader\u003ecc :cs find c \u003cC-R\u003e=\u003cSID\u003eposition()\u003cCR\u003e\u003cCR\u003e\n\n    \" cd: Find callees\n    map \u003cLeader\u003ecd :cs find d \u003cC-R\u003e=\u003cSID\u003eposition()\u003cCR\u003e\u003cCR\u003e\n\n    \" ct: Find text string\n    map \u003cLeader\u003ect :cs find t \u003cC-R\u003e=\u003cSID\u003eposition()\u003cCR\u003e\u003cCR\u003e\n\n    \" ce: Find egrep pattern\n    map \u003cLeader\u003ece :cs find e \u003cC-R\u003e=\u003cSID\u003eposition()\u003cCR\u003e\u003cCR\u003e\n\n    \" cf: Find file\n    map \u003cLeader\u003ecf :cs find f \u003cC-R\u003e=\u003cSID\u003eposition()\u003cCR\u003e\u003cCR\u003e\n\n    \" ci: Find files #including this\n    map \u003cLeader\u003eci :cs find i \u003cC-R\u003e=\u003cSID\u003eposition()\u003cCR\u003e\u003cCR\u003e\n\nendif\n```\n\nIt can be hard to understand the interaction between `cscope-lsp`\nand [cquery](https://github.com/cquery-project/cquery), but trace\nmode can be helpful here. To enable tracing, add the `--trace`\noption to the `cscope-lsp` argument, like this:\n\n```vim\n:execute ':cs add compile_commands.json . --trace=/tmp/cscope.trace'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpeach%2Fcscope-lsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpeach%2Fcscope-lsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpeach%2Fcscope-lsp/lists"}