mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
16 lines
403 B
Bash
Executable File
16 lines
403 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if command -v dotnet >/dev/null 2>&1; then
|
|
echo "dotnet installed"
|
|
dotnetcmd=dotnet
|
|
else
|
|
echo "dotnet not found, installing..."
|
|
# REF https://github.com/neovim/nvim-lsp/blob/master/lua/nvim_lsp/pyls_ms.lua
|
|
curl -L https://dot.net/v1/dotnet-install.sh | bash -s -- -i "./.dotnet"
|
|
dotnetcmd="\\$DIR/.dotnet/dotnet"
|
|
fi
|
|
|
|
$dotnetcmd tool install --tool-path . fsautocomplete
|