plugins.package-info.settings

Options provided to the require('package-info').setup function.

Type: attribute set of anything

Default: { }

Example:

{ callback = { __raw = '' function() print('nixvim') end ''; }; foo_bar = 42; hostname = "localhost:8080"; }

Declared by:

plugins.package-info.settings.package_manager

Can be npm, yarn, or pnpm.

The plugin will try to auto-detect the package manager based on yarn.lock or package-lock.json.

If none are found it will use the provided one, if nothing is provided it will use npm

Type: null or string or raw lua code

Default: null

Plugin default: "npm"

Declared by:

plugins.package-info.settings.autostart

Whether to autostart when package.json is opened.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.package-info.settings.colors

Colors of virtual text.

Type: null or (attribute set of anything) or raw lua code

Default: null

Plugin default:

{ invalid = "#ee4b2b"; outdated = "#d19a66"; up_to_date = "#3C4048"; }

Declared by:

plugins.package-info.settings.hide_unstable_versions

It hides unstable versions from version list e.g next-11.1.3-canary3.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.package-info.settings.hide_up_to_date

It hides up to date versions when displaying virtual text.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.package-info.settings.icons

Icons for virtual text.

Type: null or anything or (attribute set of anything) or raw lua code

Default: null

Plugin default:

{ enable = true; style = { invalid = "|  "; outdated = "|  "; up_to_date = "|  "; }; }

Declared by: