We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ffe54 commit 8400be8Copy full SHA for 8400be8
lua/cmp_codecompanion/tools.lua
@@ -46,16 +46,4 @@ function source:complete(params, callback)
46
})
47
end
48
49
----Execute selected item
50
----@param item table The selected item from the completion menu
51
----@param callback function
52
----@return nil
53
-function source:execute(item, callback)
54
- local Chat = require("codecompanion").buf_get_chat(item.context.bufnr)
55
- Chat:add_tool(item)
56
-
57
- callback(item)
58
- vim.bo[item.context.bufnr].buflisted = false
59
-end
60
61
return source
0 commit comments