Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/option/vim/mod.ts>imstatusfunc

📚 Standard module for denops.vim
Go to Latest
variable imstatusfunc
import { imstatusfunc } from "https://deno.land/x/denops_std@v5.0.2/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 "")