Skip to content

fix: wait until we enter a package.json file to register a pkg manager - #174

Merged
vuki656 merged 1 commit into
vuki656:masterfrom
mwojick:fix/register-pkg-manager-on-bufenter
Apr 16, 2026
Merged

fix: wait until we enter a package.json file to register a pkg manager#174
vuki656 merged 1 commit into
vuki656:masterfrom
mwojick:fix/register-pkg-manager-on-bufenter

Conversation

@mwojick

@mwojick mwojick commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

I call setup on nvim startup, so __register_package_manager would always return early because of this check:

    -- If we're not in a package.json file, exit
    if vim.fn.expand("%:t") ~= "package.json" then
        return
    end

similar to the other register fns, this waits until we actually enter a package.json file

@vuki656

vuki656 commented Apr 16, 2026

Copy link
Copy Markdown
Owner

Thanks

@vuki656
vuki656 merged commit a623bef into vuki656:master Apr 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants