mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-24 03:05:38 +02:00
feat(copilot-chat): add Snacks picker integration for copilot-chat
Adds support for using Snacks picker when picking prompt actions.
This commit is contained in:
parent
8f58fe0b62
commit
6ee2ac75e9
1 changed files with 3 additions and 2 deletions
|
@ -9,8 +9,9 @@ function M.pick(kind)
|
||||||
LazyVim.warn("No " .. kind .. " found on the current line")
|
LazyVim.warn("No " .. kind .. " found on the current line")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local ok = pcall(require, "fzf-lua")
|
local fzf_ok = pcall(require, "fzf-lua")
|
||||||
require("CopilotChat.integrations." .. (ok and "fzflua" or "telescope")).pick(items)
|
local snacks_ok = pcall(require, "snacks")
|
||||||
|
require("CopilotChat.integrations." .. (fzf_ok and "fzflua" or snacks_ok and "snacks" or "telescope")).pick(items)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue