-
-
Notifications
You must be signed in to change notification settings - Fork 189
codecompanion: extension support #1115
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
| inherit (lib.options) mkOption mkEnableOption; | ||
| inherit (lib.types) int str enum nullOr attrs; | ||
| inherit (lib.nvim.types) mkPluginSetupOption luaInline; | ||
| inherit (lib.generators) mkLuaInline; | ||
| in { | ||
| options.vim.assistant = { | ||
| codecompanion-nvim = { | ||
|
|
@@ -295,6 +296,12 @@ in { | |
| that can be used in the action palette. | ||
| ''; | ||
| }; | ||
|
|
||
| extensions = mkOption { | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe you have Fundamentally Misunderstood how In this case,adding extensions = { /* nix here */}and it would be converted to the Lua expression. With
Otherwise there is no need for this PR.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think I'm misunderstanding. I read through the docs you sent when you sent them previously. But from what I remember, there were quite a few call backs for these plugins and made more sense to just have inline lua. I'll poke around more and look into doing this without the explicit inline extension option. |
||
| type = luaInline; | ||
| default = mkLuaInline "{}"; | ||
| description = "Extensions for codecompanion"; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Add extension support is" misleading; we already hid it, it was just implicit. Better describe the change per my comment in the Nix section.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by "we already hid it"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "explicit codecompanion-nvim extension option" would be more accurate then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had* it