FollieHiyuki-dotfiles/home/.config/nvim/scripts/lsp/efm
FollieHiyuki 4508f2a819
neovim: replace nvim-lint + neoformat with null-ls.nvim
Also update config for jsonls and yamlls.
2021-10-17 21:48:14 +07:00

13 lines
356 B
Bash
Executable File

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