Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smarter go_install_package #33

Open
arp242 opened this issue Jan 8, 2020 · 0 comments
Open

Smarter go_install_package #33

arp242 opened this issue Jan 8, 2020 · 0 comments
Labels

Comments

@arp242
Copy link
Owner

@arp242 arp242 commented Jan 8, 2020

Now I need to do this:

autocmd BufReadPre /home/martin/code/goatcounter/*.go
            \ let g:gopher_install_package = 'zgo.at/goatcounter/cmd/goatcounter'
autocmd BufReadPre /home/martin/code/goatletter/*.go
            \ let g:gopher_install_package = 'zgo.at/goatletter/cmd/goatletter'

And more for other cmd/* projects.

This is kinda silly, we should be able to detect this.

Note: I also have zgo.at/goatcounter/cmd/goatcounter-reindex; if I have that file open it should build that package, and not zgo.at/goatcounter/cmd/goatcounter


makeprg is now set from compiler/go.vim; should probably hook in to BufReadPost or something.

@arp242 arp242 added the enhancement label Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.