Skip to main content
Module

x/denops_std/option/mod.ts>omnifunc

📚 Standard module for denops.vim
Go to Latest
variable omnifunc
import { omnifunc } from "https://deno.land/x/denops_std@v4.1.0/option/mod.ts";

{not available when compiled without the |+eval| feature} This option specifies a function to be used for Insert mode omni completion with CTRL-X CTRL-O. |i_CTRL-X_CTRL-O| See |complete-functions| for an explanation of how the function is invoked and what it should return. The value can be the name of a function, a |lambda| or a |Funcref|. See |option-value-function| for more information. This option is usually set by a filetype plugin: |:filetype-plugin-on| This option cannot be set from a |modeline| or in the |sandbox|, for security reasons.

type

{ get(denops: Denops): Promise<string>; set(denops: Denops, value: string): Promise<void>; reset(denops: Denops): Promise<void>; getLocal(denops: Denops): Promise<string>; setLocal(denops: Denops, value: string): Promise<void>; resetLocal(denops: Denops): Promise<void>; }