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'},
|
||||
config = tools.rest_conf
|
||||
}
|
||||
use {
|
||||
use { -- TODO: check out auto-session + session-lens
|
||||
'folke/persistence.nvim',
|
||||
event = 'BufReadPre',
|
||||
keys = '<leader>s',
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user