tmp fix for serveral bugs

This commit is contained in:
hrsh7th
2021-11-04 01:58:26 +09:00
parent 2a58b8f926
commit dc6b458fd2
2 changed files with 11 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
local api = {}
api.in_insert_enter_autocmd = nil
api.get_mode = function()
if api.is_insert_mode() then
return 'i'
@@ -17,7 +19,7 @@ api.is_insert_mode = function()
'i',
'ic',
'ix',
}, vim.api.nvim_get_mode().mode) or vim.v.insertmode == 'i'
}, vim.api.nvim_get_mode().mode)
end
api.is_cmdline_mode = function()