Skip to main content
Module

x/denops_std/option/mod.ts>shiftwidth

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

Number of spaces to use for each step of (auto)indent. Used for 'cindent', >>, <<, etc. When zero the 'ts' value will be used. Use the shiftwidth() function to get the effective shiftwidth value.

(default 8)

type

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