New in v19.4.0 - ✨ CLI interactions #2893
Replies: 4 comments 12 replies
-
|
I've using CodeCompanion only through Chat, but I heard so many things about ClaudeCode that I'm curious on how people are using it nowadays. |
Beta Was this translation helpful? Give feedback.
-
|
I've tried it, and seems to work pretty well, thank you as always for your great work Oli One thing I was wondering and couldn't deduce from the documentation, how can we customize the buffers filetype? Right now the filetype is empty, buftype is terminal. I'd appreciate it if the created buffer had a unique filetype for easy integration with edgy.nvim. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
One feature I really appreciate about claudecode.nvim is that when I'm working on a project with multiple CLAUDE.md files (like is often the case with monorepos), that it automatically loads the CLAUDE.md that's relevant to the buffer I was in. For example, if I have a CLAUDE.md for the backend and also one for the frontend, and I'm working on the backend, it automatically injects the backend CLAUDE.md I've asked claude how the plugin does it, and turns out it's a claude-code standard, I believe their vscode plugin does the exact same thing. Here's the summary claude gave me on how it works: Details
So the key link is vim.fn.getcwd() — whatever directory Neovim was |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
CodeCompanion
v19.4.0adds a new interaction type - CLI - enabling you to interact with agents like Claude Code and Opencode from within Neovim.A quick 2 min intro can be seen in the video below:
Note
The video has audio and no captions. I talk about how "performant" this is when switching between terminal and CLI buffers - it would have been more useful, visually, if I recorded at 120fps and not 60!
CLI.Interactions.mp4
Over the last month I've found that features in Claude Code are outpacing what goes into the Claude SDK and thus what Zed can implement in their ACP adapter, by a serious rate. Whilst I don't think there has been any features of note that we've missed out on, I'm keen to ensure that Neovim devs can always interact with the newest agents and LLMs from within the editor.
So, having the ability to share files and context with an agent via a swift keymap feels like a sensible addition. As does giving you devs the ability to share editor context and prompt from anywhere within a buffer.
The usage part of the docs covers everything in full and I'd recommend you take a look at that for more information alongside how you configure it.
I'm also super keen to hear how you would want to use this new interaction type in your workflow. So please post them below. I'm now so close to this PR that I can't see the wood for the trees 😆.
Beta Was this translation helpful? Give feedback.
All reactions