Experimental: Ghost text (#119)

* Inline suggest experimental

* Fix flicker

* Fix ci fails

* Reduce flicker

* Improve menu functions

* Default false

* README.md

* Add require

* Rename inline_preview to ghost_text
This commit is contained in:
hrsh7th
2021-09-03 18:34:10 +09:00
committed by GitHub
parent 6cc8b82267
commit e867bf233e
5 changed files with 74 additions and 31 deletions

View File

@@ -57,6 +57,7 @@ cmp.PreselectMode.None = 'none'
---@field public event cmp.EventConfig
---@field public mapping table<string, fun(core: cmp.Core, fallback: function)>
---@field public sources cmp.SourceConfig[]
---@field public experimental cmp.ExperimentalConfig
---@class cmp.CompletionConfig
---@field public autocomplete cmp.TriggerEvent[]
@@ -88,6 +89,9 @@ cmp.PreselectMode.None = 'none'
---@class cmp.EventConfig
---@field on_confirm_done function(e: cmp.Entry)
---@class cmp.ExperimentalConfig
---@field public ghost_text boolean
---@class cmp.SourceConfig
---@field public name string
---@field public opts table