|
|
@ -137,7 +137,7 @@ function Mode:get_user_input()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
-- echo the indicator.
|
|
|
|
-- echo the indicator.
|
|
|
|
utils.api.hi_echo(self.indicator)
|
|
|
|
self:show_name()
|
|
|
|
|
|
|
|
|
|
|
|
-- capture input.
|
|
|
|
-- capture input.
|
|
|
|
local user_input = vim.fn.getchar()
|
|
|
|
local user_input = vim.fn.getchar()
|
|
|
@ -209,6 +209,13 @@ return
|
|
|
|
Mode
|
|
|
|
Mode
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.show_name = (not vim.o.showmode) and utils.api.redraw or function()
|
|
|
|
|
|
|
|
utils.api.redraw()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vim.api.nvim_command('echohl ' .. self.indicator.hl .. " | echon '" .. self.indicator.str .. "'")
|
|
|
|
|
|
|
|
vim.api.nvim_command 'echohl None'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
-- define the exit flag
|
|
|
|
-- define the exit flag
|
|
|
|
self.supress_exit = supress_exit or false
|
|
|
|
self.supress_exit = supress_exit or false
|
|
|
|
|
|
|
|
|
|
|
|