dotfiles/.config/nvim/lua/plugins/package-info.lua
Sergio Laín 2cce8ffdc8
🐛 fix(nvim): rewrite of a lot of the config style, options and plugins
new terminal, telescope plugins moved into telescope.lua for eassier management and a lot more
2023-10-16 12:46:37 +02:00

28 lines
1.1 KiB
Lua

return {
{
"vuki656/package-info.nvim",
requires = "MunifTanjim/nui.nvim",
event = "BufRead",
opts = {
colors = {
up_to_date = "#3C4048", -- Text color for up to date dependency virtual text
outdated = "#d19a66", -- Text color for outdated dependency virtual text
},
icons = {
enable = true, -- Whether to display icons
style = {
up_to_date = "|  ", -- Icon for up to date dependencies
outdated = "|  ", -- Icon for outdated dependencies
},
},
autostart = true, -- Whether to autostart when `package.json` is opened
hide_up_to_date = false, -- It hides up to date versions when displaying virtual text
hide_unstable_versions = false, -- It hides unstable versions from version list e.g next-11.1.3-canary3
-- Can be `npm`, `yarn`, or `pnpm`. Used for `delete`, `install` etc...
-- 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 `yarn`
package_manager = "npm",
},
},
}