FollieHiyuki-dotfiles/home/.config/nvim/scripts/lsp/sqls

8 lines
294 B
Plaintext
Raw Normal View History

#!/bin/sh
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sqls"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
GOPATH="${server_path}" GOBIN="${server_path}" go install github.com/lighttiger2505/sqls@latest
GOPATH="${server_path}" GOBIN="${server_path}" go clean -modcache