1
0
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:
2026-06-26 18:32:13 +02:00
parent c5b9bf92d9
commit e9445d5934
7 changed files with 157 additions and 158 deletions
+12 -2
View File
@@ -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 = {