[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73393":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},73393,"claude-code.nvim","greggh\u002Fclaude-code.nvim","greggh","Seamless integration between Claude Code AI assistant and Neovim","",null,"Lua",2072,68,11,59,0,1,7,26,3,27.52,"MIT License",false,"main",[26,27,28,29,30,31,32,33],"ai-assistant","anthropic","claude","claude-code","neovim","nvim","plugin","terminal","2026-06-12 02:03:12","# Claude Code Neovim Plugin\n\n[![GitHub License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fgreggh\u002Fclaude-code.nvim?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Fblob\u002Fmain\u002FLICENSE)\n[![GitHub Stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fgreggh\u002Fclaude-code.nvim?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Fstargazers)\n[![GitHub Issues](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fissues\u002Fgreggh\u002Fclaude-code.nvim?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Fissues)\n[![CI](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Fgreggh\u002Fclaude-code.nvim\u002Fci.yml?branch=main&style=flat-square&logo=github)](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Neovim Version](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FNeovim-0.7%2B-blueviolet?style=flat-square&logo=neovim)](https:\u002F\u002Fgithub.com\u002Fneovim\u002Fneovim)\n[![Tests](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTests-44%20passing-success?style=flat-square&logo=github-actions)](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Version](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FVersion-0.4.2-blue?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Freleases\u002Ftag\u002Fv0.4.2)\n[![Discussions](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fdiscussions\u002Fgreggh\u002Fclaude-code.nvim?style=flat-square&logo=github)](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Fdiscussions)\n\n*A seamless integration between [Claude Code](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-code) AI assistant and Neovim*\n\n[Features](#features) •\n[Requirements](#requirements) •\n[Installation](#installation) •\n[Configuration](#configuration) •\n[Usage](#usage) •\n[Contributing](#contributing) •\n[Discussions](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Fdiscussions)\n\n![Claude Code in Neovim](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Fblob\u002Fmain\u002Fassets\u002Fclaude-code.png?raw=true)\n\nThis plugin was built entirely with Claude Code in a Neovim terminal, and then inside itself using Claude Code for everything!\n\n## Features\n\n- 🚀 Toggle Claude Code in a terminal window with a single key press\n- 🧠 Support for command-line arguments like `--continue` and custom variants\n- 🔄 Automatically detect and reload files modified by Claude Code\n- ⚡ Real-time buffer updates when files are changed externally\n- 📱 Customizable window position and size (including floating windows)\n- 🤖 Integration with which-key (if available)\n- 📂 Automatically uses git project root as working directory (when available)\n- 🧩 Modular and maintainable code structure\n- 📋 Type annotations with LuaCATS for better IDE support\n- ✅ Configuration validation to prevent errors\n- 🧪 Testing framework for reliability (44 comprehensive tests)\n\n## Requirements\n\n- Neovim 0.7.0 or later\n- [Claude Code CLI](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-code) tool installed and available in your PATH\n- [plenary.nvim](https:\u002F\u002Fgithub.com\u002Fnvim-lua\u002Fplenary.nvim) (dependency for git operations)\n\nSee [CHANGELOG.md](CHANGELOG.md) for version history and updates.\n\n## Installation\n\n### Using [lazy.nvim](https:\u002F\u002Fgithub.com\u002Ffolke\u002Flazy.nvim)\n\n```lua\nreturn {\n  \"greggh\u002Fclaude-code.nvim\",\n  dependencies = {\n    \"nvim-lua\u002Fplenary.nvim\", -- Required for git operations\n  },\n  config = function()\n    require(\"claude-code\").setup()\n  end\n}\n```\n\n### Using [packer.nvim](https:\u002F\u002Fgithub.com\u002Fwbthomason\u002Fpacker.nvim)\n\n```lua\nuse {\n  'greggh\u002Fclaude-code.nvim',\n  requires = {\n    'nvim-lua\u002Fplenary.nvim', -- Required for git operations\n  },\n  config = function()\n    require('claude-code').setup()\n  end\n}\n```\n\n### Using [vim-plug](https:\u002F\u002Fgithub.com\u002Fjunegunn\u002Fvim-plug)\n\n```vim\nPlug 'nvim-lua\u002Fplenary.nvim'\nPlug 'greggh\u002Fclaude-code.nvim'\n\" After installing, add this to your init.vim:\n\" lua require('claude-code').setup()\n```\n\n## Configuration\n\nThe plugin can be configured by passing a table to the `setup` function. Here's the default configuration:\n\n```lua\nrequire(\"claude-code\").setup({\n  -- Terminal window settings\n  window = {\n    split_ratio = 0.3,      -- Percentage of screen for the terminal window (height for horizontal, width for vertical splits)\n    position = \"botright\",  -- Position of the window: \"botright\", \"topleft\", \"vertical\", \"float\", etc.\n    enter_insert = true,    -- Whether to enter insert mode when opening Claude Code\n    hide_numbers = true,    -- Hide line numbers in the terminal window\n    hide_signcolumn = true, -- Hide the sign column in the terminal window\n    \n    -- Floating window configuration (only applies when position = \"float\")\n    float = {\n      width = \"80%\",        -- Width: number of columns or percentage string\n      height = \"80%\",       -- Height: number of rows or percentage string\n      row = \"center\",       -- Row position: number, \"center\", or percentage string\n      col = \"center\",       -- Column position: number, \"center\", or percentage string\n      relative = \"editor\",  -- Relative to: \"editor\" or \"cursor\"\n      border = \"rounded\",   -- Border style: \"none\", \"single\", \"double\", \"rounded\", \"solid\", \"shadow\"\n    },\n  },\n  -- File refresh settings\n  refresh = {\n    enable = true,           -- Enable file change detection\n    updatetime = 100,        -- updatetime when Claude Code is active (milliseconds)\n    timer_interval = 1000,   -- How often to check for file changes (milliseconds)\n    show_notifications = true, -- Show notification when files are reloaded\n  },\n  -- Git project settings\n  git = {\n    use_git_root = true,     -- Set CWD to git root when opening Claude Code (if in git project)\n  },\n  -- Shell-specific settings\n  shell = {\n    separator = '&&',        -- Command separator used in shell commands\n    pushd_cmd = 'pushd',     -- Command to push directory onto stack (e.g., 'pushd' for bash\u002Fzsh, 'enter' for nushell)\n    popd_cmd = 'popd',       -- Command to pop directory from stack (e.g., 'popd' for bash\u002Fzsh, 'exit' for nushell)\n  },\n  -- Command settings\n  command = \"claude\",        -- Command used to launch Claude Code\n  -- Command variants\n  command_variants = {\n    -- Conversation management\n    continue = \"--continue\", -- Resume the most recent conversation\n    resume = \"--resume\",     -- Display an interactive conversation picker\n\n    -- Output options\n    verbose = \"--verbose\",   -- Enable verbose logging with full turn-by-turn output\n  },\n  -- Keymaps\n  keymaps = {\n    toggle = {\n      normal = \"\u003CC-,>\",       -- Normal mode keymap for toggling Claude Code, false to disable\n      terminal = \"\u003CC-,>\",     -- Terminal mode keymap for toggling Claude Code, false to disable\n      variants = {\n        continue = \"\u003Cleader>cC\", -- Normal mode keymap for Claude Code with continue flag\n        verbose = \"\u003Cleader>cV\",  -- Normal mode keymap for Claude Code with verbose flag\n      },\n    },\n    window_navigation = true, -- Enable window navigation keymaps (\u003CC-h\u002Fj\u002Fk\u002Fl>)\n    scrolling = true,         -- Enable scrolling keymaps (\u003CC-f\u002Fb>) for page up\u002Fdown\n  }\n})\n```\n\n## Usage\n\n### Quick Start\n\n```vim\n\" In your Vim\u002FNeovim commands or init file:\n:ClaudeCode\n```\n\n```lua\n-- Or from Lua:\nvim.cmd[[ClaudeCode]]\n\n-- Or map to a key:\nvim.keymap.set('n', '\u003Cleader>cc', '\u003Ccmd>ClaudeCode\u003CCR>', { desc = 'Toggle Claude Code' })\n```\n\n### Commands\n\nBasic command:\n\n- `:ClaudeCode` - Toggle the Claude Code terminal window\n\nConversation management commands:\n\n- `:ClaudeCodeContinue` - Resume the most recent conversation\n- `:ClaudeCodeResume` - Display an interactive conversation picker\n\nOutput options command:\n\n- `:ClaudeCodeVerbose` - Enable verbose logging with full turn-by-turn output\n\nNote: Commands are automatically generated for each entry in your `command_variants` configuration.\n\n### Key Mappings\n\nDefault key mappings:\n\n- `\u003Cleader>ac` - Toggle Claude Code terminal window (normal mode)\n- `\u003CC-,>` - Toggle Claude Code terminal window (both normal and terminal modes)\n\nVariant mode mappings (if configured):\n\n- `\u003Cleader>cC` - Toggle Claude Code with --continue flag\n- `\u003Cleader>cV` - Toggle Claude Code with --verbose flag\n\nAdditionally, when in the Claude Code terminal:\n\n- `\u003CC-h>` - Move to the window on the left\n- `\u003CC-j>` - Move to the window below\n- `\u003CC-k>` - Move to the window above\n- `\u003CC-l>` - Move to the window on the right\n- `\u003CC-f>` - Scroll full-page down\n- `\u003CC-b>` - Scroll full-page up\n\nNote: After scrolling with `\u003CC-f>` or `\u003CC-b>`, you'll need to press the `i` key to re-enter insert mode so you can continue typing to Claude Code.\n\nWhen Claude Code modifies files that are open in Neovim, they'll be automatically reloaded.\n\n### Floating Window Example\n\nTo use Claude Code in a floating window:\n\n```lua\nrequire(\"claude-code\").setup({\n  window = {\n    position = \"float\",\n    float = {\n      width = \"90%\",      -- Take up 90% of the editor width\n      height = \"90%\",     -- Take up 90% of the editor height\n      row = \"center\",     -- Center vertically\n      col = \"center\",     -- Center horizontally\n      relative = \"editor\",\n      border = \"double\",  -- Use double border style\n    },\n  },\n})\n```\n\n## How it Works\n\nThis plugin:\n\n1. Creates a terminal buffer running the Claude Code CLI\n2. Sets up autocommands to detect file changes on disk\n3. Automatically reloads files when they're modified by Claude Code\n4. Provides convenient keymaps and commands for toggling the terminal\n5. Automatically detects git repositories and sets working directory to the git root\n\n## Contributing\n\nContributions are welcome! Please check out our [contribution guidelines](CONTRIBUTING.md) for details on how to get started.\n\n## License\n\nMIT License - See [LICENSE](LICENSE) for more information.\n\n## Development\n\nFor a complete guide on setting up a development environment, installing all required tools, and understanding the project structure, please refer to [DEVELOPMENT.md](DEVELOPMENT.md).\n\n### Development Setup\n\nThe project includes comprehensive setup for development:\n\n- Complete installation instructions for all platforms in [DEVELOPMENT.md](DEVELOPMENT.md)\n- Pre-commit hooks for code quality\n- Testing framework with 44 comprehensive tests\n- Linting and formatting tools\n- Weekly dependency updates workflow for Claude CLI and actions\n\n```bash\n# Run tests\nmake test\n\n# Check code quality\nmake lint\n\n# Set up pre-commit hooks\nscripts\u002Fsetup-hooks.sh\n\n# Format code\nmake format\n```\n\n## Community\n\n- [GitHub Discussions](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Fdiscussions) - Get help, share ideas, and connect with other users\n- [GitHub Issues](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Fissues) - Report bugs or suggest features\n- [GitHub Pull Requests](https:\u002F\u002Fgithub.com\u002Fgreggh\u002Fclaude-code.nvim\u002Fpulls) - Contribute to the project\n\n## Acknowledgements\n\n- [Claude Code](https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-code) by Anthropic - This plugin was entirely built using Claude Code. Development cost: $5.42 with 17m 12.9s of API time\n- [Plenary.nvim](https:\u002F\u002Fgithub.com\u002Fnvim-lua\u002Fplenary.nvim) - Core dependency for testing framework and Git operations\n- [Semantic Versioning](https:\u002F\u002Fsemver.org\u002F) - Versioning standard used in this project\n- [Contributor Covenant](https:\u002F\u002Fwww.contributor-covenant.org\u002F) - Code of Conduct standard\n- [Keep a Changelog](https:\u002F\u002Fkeepachangelog.com\u002F) - Changelog format\n- [LuaCATS](https:\u002F\u002Fluals.github.io\u002Fwiki\u002Fannotations\u002F) - Type annotations for better IDE support\n- [StyLua](https:\u002F\u002Fgithub.com\u002FJohnnyMorganz\u002FStyLua) - Lua code formatter\n- [Luacheck](https:\u002F\u002Fgithub.com\u002Flunarmodules\u002Fluacheck) - Lua static analyzer and linter\n\n---\n\nMade with ❤️ by [Gregg Housh](https:\u002F\u002Fgithub.com\u002Fgreggh)\n","claude-code.nvim 是一个将 Claude Code AI 助手与 Neovim 无缝集成的插件。其核心功能包括通过单个按键在终端窗口中切换 Claude Code、支持命令行参数如 `--continue` 和自定义变体、自动检测并重新加载由 Claude Code 修改的文件、实时更新外部更改的文件等。此外，该插件还提供了可定制的窗口位置和大小、与 which-key 的集成（如果可用）、自动使用 git 项目根目录作为工作目录等功能。适用于需要在 Neovim 中高效利用 AI 辅助进行代码编辑和开发的场景。",2,"2026-06-11 03:45:21","high_star"]