mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
neovim: lsp: clean up lsp install scripts
This commit is contained in:
parent
359cc044b2
commit
12b240dc21
@ -404,7 +404,7 @@ return packer.startup(function(use)
|
|||||||
wants = {'plenary.nvim', 'nvim-treesitter'},
|
wants = {'plenary.nvim', 'nvim-treesitter'},
|
||||||
config = tools.rest_conf
|
config = tools.rest_conf
|
||||||
}
|
}
|
||||||
use {
|
use { -- TODO: check out auto-session + session-lens
|
||||||
'folke/persistence.nvim',
|
'folke/persistence.nvim',
|
||||||
event = 'BufReadPre',
|
event = 'BufReadPre',
|
||||||
keys = '<leader>s',
|
keys = '<leader>s',
|
||||||
|
@ -1,13 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/cmake"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/cmake"
|
||||||
|
|
||||||
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
|
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
|
||||||
cd ${server_path}
|
|
||||||
|
|
||||||
python3 -m venv ${server_path}/venv
|
python3 -m venv ${server_path}/venv
|
||||||
${server_path}/venv/bin/pip3 install -U pip
|
${server_path}/venv/bin/pip3 install -U pip
|
||||||
${server_path}/venv/bin/pip3 install -U cmake-language-server
|
${server_path}/venv/bin/pip3 install -U cmake-language-server
|
||||||
|
|
||||||
cd ${current_path}
|
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/efm"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/efm"
|
||||||
|
|
||||||
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
|
[ ! -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 install github.com/mattn/efm-langserver@latest
|
||||||
GOPATH="${server_path}" GOBIN="${server_path}" go clean -modcache
|
GOPATH="${server_path}" GOBIN="${server_path}" go clean -modcache
|
||||||
|
|
||||||
cd ${current_path}
|
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/gopls"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/gopls"
|
||||||
|
|
||||||
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
|
[ ! -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 install golang.org/x/tools/gopls@latest
|
||||||
GOPATH="${server_path}" GOBIN="${server_path}" go clean -modcache
|
GOPATH="${server_path}" GOBIN="${server_path}" go clean -modcache
|
||||||
|
|
||||||
cd ${current_path}
|
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
current_path="$PWD"
|
|
||||||
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sqls"
|
server_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/lsp/sqls"
|
||||||
|
|
||||||
[ ! -d "${server_path}" ] && mkdir -p "${server_path}"
|
[ ! -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 install github.com/lighttiger2505/sqls@latest
|
||||||
GOPATH="${server_path}" GOBIN="${server_path}" go clean -modcache
|
GOPATH="${server_path}" GOBIN="${server_path}" go clean -modcache
|
||||||
|
|
||||||
cd ${current_path}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user