feat(llm): copilot (closes #68) (#116)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-20 14:24:33 -04:00
committed by GitHub
parent 7c7fd6e315
commit 175eff5cac
4 changed files with 271 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
local api = vim.api
local fn = vim.fn
---@class avante.Utils: LazyUtilCore
---@field colors avante.util.colors
---@field copilot avante.utils.copilot
local M = {}
setmetatable(M, {
@@ -18,6 +18,13 @@ setmetatable(M, {
end,
})
---Check if a plugin is installed
---@param plugin string
---@return boolean
M.has = function(plugin)
return require("lazy.core.config").plugins[plugin] ~= nil
end
---@param str string
---@param opts? {suffix?: string, prefix?: string}
function M.trim(str, opts)