mirror of
https://github.com/Iron-E/nvim-libmodal
synced 2024-11-12 07:10:23 +00:00
Statusline support
This commit is contained in:
parent
dee1f0f895
commit
f335c7c142
@ -131,6 +131,10 @@ function _metaMode:enter()
|
||||
self._popups:push(require('libmodal/src/collections/Popup').new())
|
||||
end
|
||||
|
||||
if vim.b then -- requires neovim 0.5
|
||||
self._previousModeName = vim.b.libmodalActiveModeName
|
||||
vim.b.libmodalActiveModeName = self._name
|
||||
end
|
||||
|
||||
--[[ MODE LOOP. ]]
|
||||
local continueMode = true
|
||||
@ -247,6 +251,10 @@ function _metaMode:_tearDown()
|
||||
self._popups:pop():close()
|
||||
end
|
||||
|
||||
if vim.b then -- this step requires 0.5
|
||||
vim.b.libmodalActiveModeName = self._previousModeName
|
||||
end
|
||||
|
||||
self._winState:restore()
|
||||
utils.api.nvim_redraw()
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user