Skip to main content
Module

x/denops_std/option/mod.ts>maxfuncdepth

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

{not available when compiled without the |+eval| feature} Maximum depth of function calls for user functions. This normally catches endless recursion. When using a recursive function with more depth, set 'maxfuncdepth' to a bigger number. But this will use more memory, there is the danger of failing when memory is exhausted. Increasing this limit above 200 also changes the maximum for Ex command recursion, see |E169|. See also |:function|.

type

{ get(denops: Denops): Promise<number>; set(denops: Denops, value: number): Promise<void>; reset(denops: Denops): Promise<void>; getGlobal(denops: Denops): Promise<number>; setGlobal(denops: Denops, value: number): Promise<void>; resetGlobal(denops: Denops): Promise<void>; }