feat(ui): add config to turn off hints popup (#75)

This commit is contained in:
Yuexun
2024-08-19 12:40:33 +10:00
committed by GitHub
parent 2700cad921
commit 29dabc4768
3 changed files with 15 additions and 0 deletions

View File

@@ -82,6 +82,10 @@ M.defaults = {
---@type string | fun(): any
list_opener = "copen",
},
--- @class AvanteHintsConfig
hints = {
enbaled = true,
},
}
---@type avante.Config
@@ -92,6 +96,10 @@ M.options = {}
---@field highlights AvanteConflictHighlights
M.diff = {}
---@class AvanteHintsConfig
---@field enabled boolean
M.hints = {}
---@param opts? avante.Config
function M.setup(opts)
M.options = vim.tbl_deep_extend("force", M.defaults, opts or {})