vuki656 / package-info.nvim Goto Github PK
View Code? Open in Web Editor NEW✍️ All the npm/yarn/pnpm commands I don't want to type
License: GNU General Public License v3.0
✍️ All the npm/yarn/pnpm commands I don't want to type
License: GNU General Public License v3.0
Currently on_stdout
is being called twice and the second result is empty thus clearing the initial result.
It's fixed with a hack that stops it from running after the first run but there is probably a cleaner solution.
I'm not too sure why this is happening, need to investigate.
0.1
releaseProvide an ability to choose a dependency manager per project.
People can have multiple projects where some of them use yarn
and some npm
.
Likely on_stderr
with function
node_modules
Setting that will accept some kind of value that will determine how often to refetch
Good options
Follow to be notified about breaking changes.
Since 2.0 MunifTanjim/nui.nvim is now requred as a UI kit.
Packer:
use({
"vuki656/package-info.nvim",
requires = { "MunifTanjim/nui.nvim" },
})
Currently, it is being set as version fetching is running which causes text to pop up one by one. The virtual text should be set after all fetch operations are finished.
nvim_buf_clear_namespace()
Maybe fetch all versions at once with this
If a user doesn't have a terminal that supports truecolor. no colors will be displayed at all for the plugin.
Raised in #35
dev
or prod
depyarn
or npm
for package management commandsCurrently, it compares 3.0.0 with ^3.0.0 and reports incorrect version
Add commands for show & close. They're easier to map & call than having to script lua directly.
No, sorry.
No response
NVIM v0.6.0-dev+112-ge7bde44d6
master
With an opened package.json
hit :e
. With each hit, text gets appended, and ends up looking like this:
I would expect virtual text to be replaced on reloading the buffer.
See "Actual behavior"
No response
No, sorry.
No response
package.json
set package positionsbuffer
on each package version settingWhat about to support maven and gradle?
Yes, but I don't know how to start. I would need guidance
No response
Originally posted by alxndr August 11, 2021
Love the plugin!!
Would it be feasible to add an option whereby only the outdated
versions are shown, and there is no virtual text on up_to_date
lines?
NVIM v0.5.0 Build type: Release LuaJIT 2.1.0-beta3 Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/config -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/src -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/src/nvim/auto -I/tmp/neovim-20210702-14987-rep9di/neovim-0.5.0/build/include
master
If package-info.nvim is configured with:
icons = { enable = false }
Then virtual text colors are not observed. The rest of the display seems fine.
Virtual text colors work fine if icons are enabled, which is the default, as i'm sure you're aware.
Tested using Terminal.app on MacOS 11.5.1
I would see the default virtual text color for outdated packages (#d19a66) like i do when icons are enabled
configure package-info.nvim like so:
require('package-info').setup {
icons = { enable = false },
}
No response
Yes, but I don't know how to start. I would need guidance (check question below)
If I felt ambitious, maybe. But I reckon this might be a quick one for someone already familiar with the code.
local res = string.match(current_line, [["(.-)"]])
In buffer_parser
:16
It would be useful for user to specify npm
options or entirely override npm oudated
command.
For example, I have a project where package.json is placed in a subdirectory, so the plugin doesn't work because I need to run npm --prefix <subdirectory> outdated
.
I also believe that the plugin could provide some kind of interface and work with other languages / package managers, e.g.
Rust: { filename = "Cargo.toml", command = "cargo outdated -R --format json" }
Python: { filename = "pyproject.toml", command = "poetry show --outdated" }
Yes
No response
vim.cmd("highlight PACKINFO guifg=LightGreen gui=bold,italic")
vim.api.nvim_buf_set_virtual_text(
0,
0,
buffer_line_number - 1,
{ { latest_package_version, "PACKINFO" } },
{}
)
As per the Reddit comment request.
If A is started, then B is started, then A finishes, it will kill all loading statuses meaning B status wont be shown even if it didn't finish.
package.json
package.json
do nothinghttps://github.com/siduck76/NvChad
https://github.com/vhyrro/neorg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.