Skip to main content
Module

x/ddc_vim/deps.ts>fn.islocked

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.islocked
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { islocked } = fn;

The result is a Number, which is |TRUE| when {expr} is the name of a locked variable. {expr} must be the name of a variable, |List| item or |Dictionary| entry, not the variable itself! Example: :let alist = [0, ['a', 'b'], 2, 3] :lockvar 1 alist :echo islocked('alist') " 1 :echo islocked('alist[1]') " 0 When {expr} is a variable that does not exist you get an error message. Use |exists()| to check for existence. In Vim9 script it does not work for local variables. Can also be used as a |method|: GetName()->islocked()

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>