Statusline support

This commit is contained in:
Iron-E 2020-11-13 19:59:50 -05:00
parent dee1f0f895
commit f335c7c142
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22

View File

@ -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