coder / coder/claudecode.nvim

Custom provider with multisession support

Open
#177 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
3.1k
Forks
216
PR merge metrics
No merged PRs in 30d

Description

I’m not sure if there’ll be interest in implementing it in the plugin core, but I hacked a custom provider that adds two features:
- **Tab-scoped sessions**: Each Neovim tab gets its own independent Claude Code session. I can run multiple sessions within the same branch, or have agents working autonomously on different worktrees while I focus on something else.
- **Layout switching**: Sometimes I have long discussions with an agent without referencing code much. In those cases, I prefer a centered floating window over the side panel. The provider supports two layouts—`side` and `float`—and I can toggle between them with a keybind.

Multisession required a [few patches](https://github.com/alex35mil/dotfiles/blob/master/home/.config/nvim/lua/editor/features/claudecode-provider.lua#L268-L445), but it works.

I put all details in the blog post: https://alex.draft42.io/blog/multisession-agentic-workflow-with-claude-code-in-neovim-lsdoiuzd0

Provider source: https://github.com/alex35mil/dotfiles/blob/master/home/.config/nvim/lua/editor/features/claudecode-provider.lua
Provider + plugin config: https://github.com/alex35mil/dotfiles/blob/master/home/.config/nvim/lua/plugins/ai/claudecode.lua

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.