Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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: 5 additions & 1 deletion autoload/lsp_settings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,14 @@ function! s:vim_lsp_installer(ft, ...) abort
if l:missing !=# 0
continue
endif

if lsp_settings#executable(l:command)
return [l:conf.command, l:command]
let l:version = lsp_settings#get(l:conf.command, 'version', '')
return [l:conf.command, l:command . ' ' . l:version]
endif

endfor

return [v:false] " placeholder, so that empty() returns false, but len() < 2 returns true
endfunction

Expand Down
2 changes: 1 addition & 1 deletion installer/install-clojure-lsp.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off

setlocal
set VERSION=2021.02.01-20.37.52
set VERSION=%1:-2021.02.01-20.37.52%
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no idea if this works, I used this tool to convert a bash expression to a bat one haha

curl -L -o clojure-lsp.cmd https://github.com/clojure-lsp/clojure-lsp/releases/download/%VERSION%/clojure-lsp
2 changes: 1 addition & 1 deletion installer/install-clojure-lsp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -e

version="2021.02.01-20.37.52"
version=${1:-"2021.02.01-20.37.52"}
curl -L -o clojure-lsp "https://github.com/clojure-lsp/clojure-lsp/releases/download/$version/clojure-lsp"
chmod +x clojure-lsp