Skip to content

Commit 137da50

Browse files
authored
docs(docs): add snacks.nvim picker integration docs (#726)
1 parent 0a62c9f commit 137da50

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,27 @@ Requires [fzf-lua](https://github.com/ibhagwan/fzf-lua) plugin to be installed.
681681

682682
</details>
683683

684+
<details>
685+
<summary>snacks.nvim integration</summary>
686+
687+
Requires [snacks.nvim](https://github.com/folke/snacks.nvim) plugin to be installed and the [picker](https://github.com/folke/snacks.nvim/blob/main/docs/picker.md) to be configured.
688+
689+
```lua
690+
-- lazy.nvim keys
691+
692+
-- Show prompts actions with snacks.nvim picker
693+
{
694+
"<leader>ccp",
695+
function()
696+
local actions = require("CopilotChat.actions")
697+
require("CopilotChat.integrations.snacks").pick(actions.prompt_actions())
698+
end,
699+
desc = "CopilotChat - Prompt actions",
700+
},
701+
```
702+
703+
</details>
704+
684705
<details>
685706
<summary>render-markdown integration</summary>
686707

doc/CopilotChat.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,23 @@ Requires fzf-lua <https://github.com/ibhagwan/fzf-lua> plugin to be installed.
716716
desc = "CopilotChat - Prompt actions",
717717
},
718718
<
719+
snacks.nvim integration ~
720+
721+
Requires snacks.nvim <https://github.com/folke/snacks.nvim> plugin to be installed and the picker <https://github.com/folke/snacks.nvim/blob/main/docs/picker.md> to be configured.
722+
723+
>lua
724+
-- lazy.nvim keys
725+
726+
-- Show prompts actions with snacks.nvim picker
727+
{
728+
"<leader>ccp",
729+
function()
730+
local actions = require("CopilotChat.actions")
731+
require("CopilotChat.integrations.snacks").pick(actions.prompt_actions())
732+
end,
733+
desc = "CopilotChat - Prompt actions",
734+
},
735+
<
719736

720737
render-markdown integration ~
721738

0 commit comments

Comments
 (0)