nvim_runtime_lua

vim.api.keyset.get_mode

Fields2

get_mode.blocking : boolean
get_mode.mode : string