summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2022-01-20 18:53:40 +0100
committerMartin Polden <mpolden@mpolden.no>2022-01-20 18:53:40 +0100
commitabf312583403ea3f0cc56f698bc1be76324fef58 (patch)
treec304aaf0d5f2d167e1cac56cf2e4ea107efef6d1 /Makefile
parent372e69e8b29cd2a22f2f90c814f487666363b3d7 (diff)
makefile: Prefer installing gopls with brew
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5866b95..62a0e1b 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,11 @@ endif
install-lsp: install-lsp-go install-lsp-java install-lsp-python install-lsp-rust
install-lsp-go:
+ifneq ($(BREW),)
+ brew install gopls
+else
go install golang.org/x/tools/gopls@latest
+endif
install-lsp-java:
mkdir $(JDT_LS_HOME)