Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lua/astrocommunity/editing-support/vector-code-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
return {
"Davidyz/VectorCode",
build = function()
if not vim.fn.executable "uv" then error "The VectorCode pack requires uv installed" end
vim.cmd "uv tool install vectorcode"
if vim.fn.executable "uv" == 0 then error "The VectorCode pack requires `uv` installed" end

local action = vim.fn.executable "vectorcode" == 0 and "install" or "upgrade"
vim.system { "uv", "tool", action, "vectorcode" }
Comment on lines +4 to +7
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should support uv and pipx.
If uv is installed, use uv no matter what. fallback to pipx, and none of them are there, notify the end-user. Also update the docs to reflect this.

end,
version = "*", -- optional, depending on whether you're on nightly or release
dependencies = { "nvim-lua/plenary.nvim" },
Expand Down
Loading