This commit is contained in:
hrsh7th
2021-10-11 16:29:42 +09:00
parent 071c08fcc9
commit 2f2794decd
8 changed files with 23 additions and 18 deletions

View File

@@ -47,7 +47,7 @@ config.enabled = function()
if type(enabled) == 'function' then
enabled = enabled()
end
return enabled and string.sub(vim.api.nvim_get_mode().mode, 1, 1) == 'i'
return enabled and misc.is_suitable_mode()
end
---Return source config