{"id":15155460,"url":"https://github.com/sr1jan/codepartner","last_synced_at":"2026-02-18T15:32:08.489Z","repository":{"id":255052910,"uuid":"845566898","full_name":"sr1jan/codepartner","owner":"sr1jan","description":"neovim plugin to get AI-powered (llm) code explanation \u0026 assistance directly in the editor. fast and simple.","archived":false,"fork":false,"pushed_at":"2024-12-15T12:45:56.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-18T23:23:18.870Z","etag":null,"topics":["llm","lua","neovim","neovim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sr1jan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-21T13:52:13.000Z","updated_at":"2024-12-15T12:46:00.000Z","dependencies_parsed_at":"2024-12-15T13:35:34.283Z","dependency_job_id":"231aa257-5ebc-4fec-a901-ebfd0c168d91","html_url":"https://github.com/sr1jan/codepartner","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"73fe941f6c8a64478453f5d2f7cc35c646017434"},"previous_names":["sr1jan/codepartner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sr1jan/codepartner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr1jan%2Fcodepartner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr1jan%2Fcodepartner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr1jan%2Fcodepartner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr1jan%2Fcodepartner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sr1jan","download_url":"https://codeload.github.com/sr1jan/codepartner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sr1jan%2Fcodepartner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017051,"owners_count":26085951,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["llm","lua","neovim","neovim-plugin"],"created_at":"2024-09-26T18:21:57.202Z","updated_at":"2025-10-13T21:40:46.159Z","avatar_url":"https://github.com/sr1jan.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodePartner.nvim\n\nCodePartner is a Neovim plugin that provides AI-powered code explanations and assistance directly in your editor.\n\n## Features\n\n- Explain selected code snippets\n- Follow-up questions and conversations about your code\n- Customizable floating window for explanations\n\nhttps://github.com/user-attachments/assets/789ad4f8-06c1-466b-b145-6fa47e7e3963\n\n\n## Requirements\n\n- Neovim \u003e= 0.7.0\n- Python 3.7+\n- Flask \n- llm \u003e= 0.14\n\n## Installation\n\nHere are several ways to install CodePartner.nvim:\n\n### Using [packer.nvim](https://github.com/wbthomason/packer.nvim)\n\n```lua\nuse {\n  'sr1/codepartner.nvim',\n  config = function()\n    require('codepartner').setup({\n      api_key = 'your_api_key_here',\n      server_url = 'http://localhost:5000'  -- Adjust if needed\n      auto_start_server = true  -- Set to false if you want to start the server manually\n    })\n  end\n}\n```\n\n### Using [vim-plug](https://github.com/junegunn/vim-plug)\n\nAdd the following to your init.vim:\n\n```vim\nPlug 'sr1/codepartner.nvim'\n\n\" After plug#end():\nlua \u003c\u003c EOF\nrequire('codepartner').setup({\n  api_key = 'your_api_key_here',\n  server_url = 'http://localhost:5000'  -- Adjust if needed\n  auto_start_server = true  -- Set to false if you want to start the server manually\n})\nEOF\n```\n\n### Using [dein.vim](https://github.com/Shougo/dein.vim)\n\nAdd the following to your init.vim:\n\n```vim\ncall dein#add('sr1/codepartner.nvim')\n\n\" After dein#end():\nlua \u003c\u003c EOF\nrequire('codepartner').setup({\n  api_key = 'your_api_key_here',\n  server_url = 'http://localhost:5000'  -- Adjust if needed\n  auto_start_server = true  -- Set to false if you want to start the server manually\n})\nEOF\n```\n\n### Using [lazy.nvim](https://github.com/folke/lazy.nvim)\n\nAdd the following to your Neovim configuration:\n\n```lua\n{\n  'sr1/codepartner.nvim',\n  config = function()\n    require('codepartner').setup({\n      api_key = 'your_api_key_here',\n      server_url = 'http://localhost:5000'  -- Adjust if needed\n      auto_start_server = true  -- Set to false if you want to start the server manually\n    })\n  end\n}\n```\n\n### Manual Installation\n\nIf you prefer to manually install the plugin:\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/sr1/codepartner.nvim.git \\\n     ~/.local/share/nvim/site/pack/plugins/start/codepartner.nvim\n   ```\n2. Add the following to your init.lua:\n   ```lua\n   require('codepartner').setup({\n     api_key = 'your_api_key_here',\n     server_url = 'http://localhost:5000'  -- Adjust if needed\n     auto_start_server = true  -- Set to false if you want to start the server manually\n   })\n   ```\n\n## Usage\n\n1. Select the code you want to explain in visual mode\n2. Run `:ExplainSelection` to get an explanation\n3. Use `\u003cLeader\u003eet` to toggle the explanation window\n4. Use `\u003cLeader\u003eec` to close the explanation window\n\n## Configuration\n\nYou can customize the plugin by passing options to the setup function:\n\n```lua\nrequire('codepartner').setup({\n  api_key = 'your_api_key_here',\n  server_url = 'http://your_server_url:port'\n  auto_start_server = true  -- Set to false if you want to start the server manually\n})\n```\n\n## Server Management\n\nBy default, the server will start automatically when you open Neovim. You can manage the server using the following commands:\n\nTo start the server manually:\n```vim\n:StartCodePartner()\n```\n\nTo stop the server:\n```vim\n:StopCodePartner()\n```\n\nThe server runs as a background process. You can find its logs in the plugin's server directory (codepartner_server.log).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr1jan%2Fcodepartner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsr1jan%2Fcodepartner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsr1jan%2Fcodepartner/lists"}