Improve macro & dot-repeat support (#363)
* manual support dot-repeat * cmdwin and terminal * cmdline only * Fix * fix * Improve * Fix test * Support macro * disable cmdline for now * Simplify * fmt * consume once * Ignore = type * cmdline * Remove cmdline features
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
local config = require('cmp.config')
|
||||
local str = require('cmp.utils.str')
|
||||
local types = require('cmp.types')
|
||||
local api = require('cmp.utils.api')
|
||||
|
||||
---@class cmp.GhostTextView
|
||||
local ghost_text_view = {}
|
||||
@@ -53,6 +54,9 @@ end
|
||||
---Show ghost text
|
||||
---@param e cmp.Entry
|
||||
ghost_text_view.show = function(self, e)
|
||||
if not api.is_insert_mode() then
|
||||
return
|
||||
end
|
||||
local changed = e ~= self.entry
|
||||
self.win = vim.api.nvim_get_current_win()
|
||||
self.entry = e
|
||||
|
||||
Reference in New Issue
Block a user