Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/nvim/mod.ts>nvim_strwidth

๐Ÿ“š Standard module for denops.vim
Go to Latest
function nvim_strwidth
import { nvim_strwidth } from "https://deno.land/x/denops_std@v3.9.0/function/nvim/mod.ts";

Calculates the number of display cells occupied by text . counts as one cell. Parameters: ~ {text} Some text Return: ~ Number of cells

Parameters

denops: Denops
text: unknown

Returns

Promise<unknown>