feat: automatic suggestion (smart tab) (#455)

This commit is contained in:
yetone
2024-09-03 14:03:59 +08:00
committed by GitHub
parent 962dd0a759
commit 65e1e178f5
10 changed files with 592 additions and 43 deletions

View File

@@ -45,8 +45,14 @@ M.edit = function(question)
end
end
---@return avante.Suggestion | nil
M.get_suggestion = function()
local _, _, suggestion = require("avante").get()
return suggestion
end
M.refresh = function()
local sidebar, _ = require("avante").get()
local sidebar = require("avante").get()
if not sidebar then
return
end