mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2026-07-24 00:35:45 +00:00
[neovim] Remove copilot support
This commit is contained in:
@@ -2,7 +2,11 @@ require("snacks").setup({
|
||||
animate = {},
|
||||
bigfile = {},
|
||||
explorer = {},
|
||||
input = {
|
||||
enabled = true,
|
||||
},
|
||||
picker = {
|
||||
enabled = true,
|
||||
sources = {
|
||||
explorer = {
|
||||
hidden = true,
|
||||
@@ -10,8 +14,14 @@ require("snacks").setup({
|
||||
},
|
||||
},
|
||||
actions = {
|
||||
opencode_send = function(...)
|
||||
return require("opencode").snacks_picker_send(...)
|
||||
opencode_send = function(picker)
|
||||
local items = vim.tbl_map(function(item)
|
||||
return item.file
|
||||
and require("opencode").format({ path = item.file, from = item.pos, to = item.end_pos })
|
||||
or item.text
|
||||
end, picker:selected({ fallback = true }))
|
||||
|
||||
require("opencode").prompt(table.concat(items, ", ") .. " ")
|
||||
end,
|
||||
},
|
||||
win = {
|
||||
|
||||
Reference in New Issue
Block a user