{"id":26343668,"url":"https://github.com/haydenkz/nvim-wingman","last_synced_at":"2025-12-03T01:04:39.791Z","repository":{"id":280528253,"uuid":"942302894","full_name":"haydenkz/nvim-wingman","owner":"haydenkz","description":"Copilot like code completion for a local Ollama server or GrokAPI","archived":false,"fork":false,"pushed_at":"2025-03-14T05:25:33.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T06:26:31.506Z","etag":null,"topics":["grok","lua","neovim","neovim-plugin","ollama"],"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/haydenkz.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":"2025-03-03T22:32:49.000Z","updated_at":"2025-03-14T05:25:36.000Z","dependencies_parsed_at":"2025-03-14T06:36:56.803Z","dependency_job_id":null,"html_url":"https://github.com/haydenkz/nvim-wingman","commit_stats":null,"previous_names":["haydenzeller/nvim-wingman","haydenkz/nvim-wingman"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haydenkz%2Fnvim-wingman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haydenkz%2Fnvim-wingman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haydenkz%2Fnvim-wingman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haydenkz%2Fnvim-wingman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haydenkz","download_url":"https://codeload.github.com/haydenkz/nvim-wingman/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826788,"owners_count":20354222,"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":["grok","lua","neovim","neovim-plugin","ollama"],"created_at":"2025-03-16T05:17:43.132Z","updated_at":"2025-12-03T01:04:39.756Z","avatar_url":"https://github.com/haydenkz.png","language":"Lua","readme":"# Wingman\n\n**Wingman** is a Neovim plugin that provides intelligent code completion suggestions using either the Grok API (from xAI) or a local Ollama instance. It displays suggestions as virtual text in your buffer and allows you to accept them with a single keypress. Designed for seamless integration with LazyVim, Wingman aims to enhance your coding workflow with minimal setup.\n\n## Features\n\n- **Real-time code completion**: Suggestions appear as you type, based on your current context.\n- **Supports Grok and Ollama**: Use either the cloud-based Grok API or a local Ollama instance for completions.\n- **Configurable settings**: Customize API endpoints, models, keymaps, and more.\n- **Automatic triggering**: Suggestions are triggered automatically after a configurable character threshold.\n- **Toggle and manual completion**: Enable/disable suggestions or manually request completions via commands.\n- **Lightweight**: Depends only on `plenary.nvim` for HTTP requests.\n\n## Installation\n\nWingman.nvim is designed to work with [LazyVim](https://github.com/folke/lazy.nvim), a modern Neovim plugin manager. Follow these steps to install it:\n\n### Using LazyVim\n\nAdd the following to your LazyVim configuration (typically in `~/.config/nvim/lua/plugins/`):\n\n```lua\nreturn {\n  \"haydenkz/nvim-wingman\",\n  lazy = false, -- Load immediately (recommended for real-time suggestions)\n  dependencies = { \"nvim-lua/plenary.nvim\" }, -- Required for HTTP requests\n  config = function()\n    require(\"wingman\").setup({\n      api_key = \"your-grok-api-key\", -- Replace with your xAI Grok API key\n      useOllama = false,             -- Set to true to use Ollama instead of Grok\n      model = \"grok-2-latest\",       -- Specify the model to use\n      ollama_url = \"http://localhost:11434\", -- Ollama API endpoint\n      grok_url = \"https://api.x.ai/v1/chat/completions\", -- Grok API endpoint\n    })\n  end,\n}\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaydenkz%2Fnvim-wingman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaydenkz%2Fnvim-wingman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaydenkz%2Fnvim-wingman/lists"}