Skip to main content
Module

x/denops_std/function/vim/mod.ts>prop_type_add

📚 Standard module for denops.vim
Go to Latest
function prop_type_add
import { prop_type_add } from "https://deno.land/x/denops_std@v6.4.0/function/vim/mod.ts";

Add a text property type {name}. If a property type with this name already exists an error is given. Nothing is returned. {props} is a dictionary with these optional fields: bufnr define the property only for this buffer; this avoids name collisions and automatically clears the property types when the buffer is deleted. highlight name of highlight group to use priority when a character has multiple text properties the one with the highest priority will be used; negative values can be used, the default priority is zero combine when omitted or TRUE combine the highlight with any syntax highlight; when FALSE syntax highlight will not be used override when TRUE the highlight overrides any other, including 'cursorline' and Visual start_incl when TRUE inserts at the start position will be included in the text property end_incl when TRUE inserts at the end position will be included in the text property

Can also be used as a method:

GetPropName()->prop_type_add(props)

Parameters

denops: Denops
name: unknown
props: unknown

Returns

Promise<void>