Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>op.numberwidth

Dark deno-powered completion framework for neovim/Vim
Go to Latest
variable op.numberwidth
import { op } from "https://deno.land/x/ddc_vim@v4.3.0/deps.ts";
const { numberwidth } = op;

Minimal number of columns to use for the line number. Only relevant when the 'number' or 'relativenumber' option is set or printing lines with a line number. Since one space is always between the number and the text, there is one less character for the number itself. The value is the minimum width. A bigger width is used when needed to fit the highest line number in the buffer respectively the number of rows in the window, depending on whether 'number' or 'relativenumber' is set. Thus with the Vim default of 4 there is room for a line number up to 999. When the buffer has 1000 lines five columns will be used. The minimum value is 1, the maximum value is 20. NOTE: This option is set to the Vi default value when 'compatible' is set and to the Vim default value when 'compatible' is reset.

(Vim default: 4 Vi default: 8)

only available when compiled with the +linebreak feature

type

LocalOption<number>