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.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: