import { imstatusfunc } from "https://deno.land/x/denops_std@v6.5.0/option/vim/mod.ts";
This option specifies a function that is called to obtain the status
of Input Method. It must return a positive number when IME is active.
The value can be the name of a function, a lambda
or a Funcref
.
See option-value-function
for more information.
It is not used in the MS-Windows GUI version.
Example:
function ImStatusFunc()
let is_active = ...do something
return is_active ? 1 : 0
endfunction
set imstatusfunc=ImStatusFunc
NOTE: This function is invoked very often. Keep it fast.
The expression will be evaluated in the sandbox
when set from a
modeline, see sandbox-option
.
(default "")
type
GlobalOption<string>