{"id":18093760,"url":"https://github.com/Snikimonkd/cmp-go-pkgs","last_synced_at":"2025-03-29T06:31:15.021Z","repository":{"id":215944640,"uuid":"740102391","full_name":"Snikimonkd/cmp-go-pkgs","owner":"Snikimonkd","description":"nvim-cmp source for golang packages path.","archived":false,"fork":false,"pushed_at":"2025-01-07T13:13:24.000Z","size":8,"stargazers_count":21,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T14:26:03.392Z","etag":null,"topics":["lua","neovim","neovim-plugin","nvim","nvim-cmp","nvim-plugin"],"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/Snikimonkd.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-01-07T14:35:18.000Z","updated_at":"2025-01-07T13:13:28.000Z","dependencies_parsed_at":"2024-01-13T19:14:26.673Z","dependency_job_id":"8885c6be-5090-4149-bc02-4d2fcb35ad1c","html_url":"https://github.com/Snikimonkd/cmp-go-pkgs","commit_stats":null,"previous_names":["snikimonkd/cmp-go-pkgs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snikimonkd%2Fcmp-go-pkgs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snikimonkd%2Fcmp-go-pkgs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snikimonkd%2Fcmp-go-pkgs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snikimonkd%2Fcmp-go-pkgs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Snikimonkd","download_url":"https://codeload.github.com/Snikimonkd/cmp-go-pkgs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246150270,"owners_count":20731414,"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":["lua","neovim","neovim-plugin","nvim","nvim-cmp","nvim-plugin"],"created_at":"2024-10-31T19:01:37.518Z","updated_at":"2025-03-29T06:31:14.754Z","avatar_url":"https://github.com/Snikimonkd.png","language":"Lua","readme":"# cmp-go-pkgs\n\nnvim-cmp source for golang packages path.\n\nLoads once on LspAttach event.\n\nShows only inside import block.\n\nhttps://github.com/Snikimonkd/cmp-go-pkgs/assets/72211350/4bf7b149-4f72-4f24-a529-794a9201dcf5\n\n## Setup\n\nSetup with [lazy.nvim](https://github.com/folke/lazy.nvim):\n\n```lua\nreturn {\n    \"hrsh7th/nvim-cmp\",\n    dependencies = {\n        \"Snikimonkd/cmp-go-pkgs\",\n    },\n    config = function()\n        local cmp = require(\"cmp\")\n\n        cmp.setup({\n            sources = {\n                { name = \"go_pkgs\" },\n            },\n\t\t\tmatching = { disallow_symbol_nonprefix_matching = false }, -- to use . and / in urls\n        })\n    end,\n},\n```\n\n## Lspkind\n\nYou can use it with [lspkind](https://github.com/onsails/lspkind.nvim):\n\n```lua\nreturn {\n    \"hrsh7th/nvim-cmp\",\n    dependencies = {\n        \"Snikimonkd/cmp-go-pkgs\",\n    },\n    config = function()\n        local cmp = require(\"cmp\")\n        local lspkind = require(\"lspkind\")\n\n        cmp.setup({\n            sources = {\n                { name = \"go_pkgs\" },\n            },\n            formatting = {\n                format = lspkind.cmp_format({\n                    with_text = true,\n                    menu = {\n                        go_pkgs = \"[pkgs]\",\n                    },\n                }),\n            },\n        })\n    end,\n},\n```\n\n## Inspiration\n\n(where i stole some code)\n\nhttps://github.com/ray-x/go.nvim\n\nhttps://github.com/hrsh7th/cmp-buffer\n\nhttps://github.com/onsails/lspkind.nvim\n\n","funding_links":[],"categories":["Programming Languages Support","Recently Updated"],"sub_categories":["Golang","[Oct 27, 2024](/content/2024/10/27/README.md)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSnikimonkd%2Fcmp-go-pkgs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSnikimonkd%2Fcmp-go-pkgs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSnikimonkd%2Fcmp-go-pkgs/lists"}