neovim: lsp: clean up lsp install scripts

This commit is contained in:
FollieHiyuki 2021-10-18 21:25:08 +07:00
parent 359cc044b2
commit 12b240dc21
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
5 changed files with 1 additions and 21 deletions

View File

@ -404,7 +404,7 @@ return packer.startup(function(use)
wants = {'plenary.nvim', 'nvim-treesitter'},
config = tools.rest_conf
}
use {
use { -- TODO: check out auto-session + session-lens
'folke/persistence.nvim',
event = 'BufReadPre',
keys = '<leader>s',

View File

@ -1,13 +1,8 @@
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/cmake"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
python3 -m venv ${server_path}/venv
${server_path}/venv/bin/pip3 install -U pip
${server_path}/venv/bin/pip3 install -U cmake-language-server
cd ${current_path}

View File

@ -1,12 +1,7 @@
#!/bin/sh
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}

View File

@ -1,12 +1,7 @@
#!/bin/sh
current_path="$PWD"
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/gopls"
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
cd ${server_path}
GOPATH="${server_path}" GOBIN="${server_path}" go install golang.org/x/tools/gopls@latest
GOPATH="${server_path}" GOBIN="${server_path}" go clean -modcache
cd ${current_path}

View File

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