-
Notifications
You must be signed in to change notification settings - Fork 38
Add prompt library builder for codecompanion.nvim extension #264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #264 +/- ##
=======================================
Coverage 99.72% 99.72%
=======================================
Files 25 25
Lines 1837 1837
=======================================
Hits 1832 1832
Misses 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d3aeb95
to
7c519ba
Compare
27b1403
to
e51cb24
Compare
5 tasks
1a6b396
to
3ba9296
Compare
nvm. Just waiting for the |
f92f9a2
to
d6c0db3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR provides a streamlined experience of indexing and querying the neovim runtime (including the lua source code/type stub and the help doc).
Specifically, this PR registers a new prompt that:
$VIMRUNTIME
), including*.lua
and*.txt
.pre_hook
option in prompt library when applicable for chat strategy. olimorris/codecompanion.nvim#1964I'm also interested in turning this into a prompt builder so that you can easily do the same for an arbitrary local directory.Done. Users can now easily set up a custom prompt in the action palette that is similar to the built-in one.Demonstration
The following will create a collection for the kitty documentation that comes with the Arch Linux package for the kitty terminal emulator:
And you'll see a new action in the



:CodeCompanionActions
menu:Some default user prompts have been populated in the chat buffer:
You'd just need to type your question here, and the LLM will now use the tool to query from the correct database to answer your questions: