From 0a9a4acfc0e5f2d47bbf80deb568d5177c6261e2 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Wed, 25 Dec 2019 22:41:29 +0900 Subject: Update README : merging plugin manager notice add --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 836859a..56fee81 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,14 @@ For [vim-plug](https://github.com/junegunn/vim-plug) plugin manager: Plug 'mattn/vim-lsp-settings' ``` +### Notice + +If you use plugin manager that is merging plugins (ex. dein), Please setting stop merging work(ex. dein / merged = 0). + +*reason*: +Servers are installed in ./servers directory at the caching area. +But when rebuild the cache, any merging plugin manager erases old cached files(include ./servers and server execute files) before install. + ## Usage If you install clangd already, you can use clangd for C/C++ without configurations. But if you install clang with named clangd-6.0, you can replace executable like below: -- cgit v1.2.3-54-g00ecf From 6508d40ec1a126d39749ebcd356e9e7d243b95d9 Mon Sep 17 00:00:00 2001 From: shirokuro <46kuro212@gmail.com> Date: Thu, 26 Dec 2019 00:40:29 +0900 Subject: Fix Rust integration --- README.md | 2 +- installer/install-rls.cmd | 15 --------------- installer/install-rls.sh | 11 ----------- settings.json | 4 +--- 4 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 installer/install-rls.cmd delete mode 100755 installer/install-rls.sh (limited to 'README.md') diff --git a/README.md b/README.md index 836859a..154cc32 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Currently, no way to uninstall/update server. Run this command again, newer vers | TypeScript | typescript-language-server | Yes | | JavaScript | javascript-typescript-langserver/typescript-language-server | Yes | | Python | pyls | Yes | -| Rust | rls | Yes | +| Rust | rls | No | | Go | gopls | Yes | | Ruby | solargraph | Yes | | PHP | intelephense | Yes | diff --git a/installer/install-rls.cmd b/installer/install-rls.cmd deleted file mode 100644 index eb7900a..0000000 --- a/installer/install-rls.cmd +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -setlocal - -cd %~dp0 -if exist "..\servers\rls" rd /S /Q "..\servers\rls" -md "..\servers\rls" -cd "..\servers\rls" -set CARGO_HOME=%cd% -cargo install rls -copy bin\rls.exe . -rd /S /Q "bin" -rd /S /Q "registry" -del .package-cache -del .crates.toml diff --git a/installer/install-rls.sh b/installer/install-rls.sh deleted file mode 100755 index ab310ff..0000000 --- a/installer/install-rls.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) -[ -d ../servers/rls ] && rm -rf ../servers/rls -mkdir ../servers/rls -cd ../servers/rls -CARGO_HOME=$(pwd) cargo install rls -cp bin/rls . -rm -rf bin registry .package-cache .crates.toml diff --git a/settings.json b/settings.json index 992d02d..8081274 100644 --- a/settings.json +++ b/settings.json @@ -50,9 +50,7 @@ "rust": [ { "command": "rls", - "requires": [ - "rustup" - ] + "requires": [] } ], "go": [ -- cgit v1.2.3-54-g00ecf From 6fa5eb358c24dc7e0838e790ec0b45141d56a909 Mon Sep 17 00:00:00 2001 From: Mitsuo Heijo Date: Thu, 26 Dec 2019 01:32:29 +0900 Subject: feature: support swift and cobol --- README.md | 2 ++ installer/install-cobol-language-support.sh | 22 ++++++++++++++++++++++ settings.json | 16 ++++++++++++++++ settings/cobol-language-support.vim | 13 +++++++++++++ settings/sourcekit-lsp.vim | 13 +++++++++++++ 5 files changed, 66 insertions(+) create mode 100755 installer/install-cobol-language-support.sh create mode 100644 settings/cobol-language-support.vim create mode 100644 settings/sourcekit-lsp.vim (limited to 'README.md') diff --git a/README.md b/README.md index 836859a..4c0bc35 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,8 @@ Currently, no way to uninstall/update server. Run this command again, newer vers | Scala | Metals | Yes | | Elm | elm-language-server | Yes | | JSON | json-languageserver | Yes | +| Swift | sourcekit-lsp | No | +| COBOL | cobol-language-support | Yes | ## License diff --git a/installer/install-cobol-language-support.sh b/installer/install-cobol-language-support.sh new file mode 100755 index 0000000..f87e1c3 --- /dev/null +++ b/installer/install-cobol-language-support.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -e + +cd $(dirname $0) + +server_dir="../servers/cobol-language-support" +[ -d "$server_dir" ] && rm -rf "$server_dir" +mkdir "$server_dir" && cd "$server_dir" + +version="0.9.1" +url="https://github.com/eclipse/che-che4z-lsp-for-cobol/releases/download/$version/cobol-language-support-$version.vsix" +curl -LO "$url" +unzip "cobol-language-support-$version.vsix" + +cat <./cobol-language-support +#!/bin/sh +DIR=\$(cd \$(dirname \$0); pwd) +java "-Dline.speparator=\r\n" -jar "\$DIR/extension/server/lsp-service-cobol-$version.jar" pipeEnabled +EOF + +chmod +x ./cobol-language-support diff --git a/settings.json b/settings.json index 992d02d..c7f0432 100644 --- a/settings.json +++ b/settings.json @@ -204,5 +204,21 @@ "npm" ] } + ], + "swift": [ + { + "command": "sourcekit-lsp", + "requires": [ + "sourcekit-lsp" + ] + } + ], + "cobol": [ + { + "command": "cobol-language-support", + "requires": [ + "java" + ] + } ] } diff --git a/settings/cobol-language-support.vim b/settings/cobol-language-support.vim new file mode 100644 index 0000000..b0f5dc9 --- /dev/null +++ b/settings/cobol-language-support.vim @@ -0,0 +1,13 @@ +augroup vimlsp_settings_cobol_language_support + au! + LspRegisterServer { + \ 'name': 'cobol-language-support', + \ 'cmd': {server_info->lsp_settings#get('cobol-language-support', 'cmd', [lsp_settings#exec_path('cobol-language-support')])}, + \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/']))}, + \ 'initialization_options': lsp_settings#get('cobol-language-support', 'initialization_options', {}), + \ 'whitelist': lsp_settings#get('cobol-language-support', 'whitelist', ['cobol']), + \ 'blacklist': lsp_settings#get('cobol-language-support', 'blacklist', []), + \ 'config': lsp_settings#get('cobol-language-support', 'config', {}), + \ 'workspace_config': lsp_settings#get('cobol-language-support', 'workspace_config', {}), + \ } +augroup END diff --git a/settings/sourcekit-lsp.vim b/settings/sourcekit-lsp.vim new file mode 100644 index 0000000..0d0c155 --- /dev/null +++ b/settings/sourcekit-lsp.vim @@ -0,0 +1,13 @@ +augroup vimlsp_settings_sourcekit_lsp + au! + LspRegisterServer { + \ 'name': 'sourcekit-lsp', + \ 'cmd': {server_info->lsp_settings#get('sourcekit-lsp', 'cmd', [lsp_settings#exec_path('sourcekit-lsp')])}, + \ 'initialization_options': lsp_settings#get('sourcekit-lsp', 'initialization_options', {}), + \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/', 'Package.swift', '.xcodeproj', '.xcworkspace', 'Cartfile', 'Podfile']))}, + \ 'whitelist': lsp_settings#get('sourcekit-lsp', 'whitelist', ['swift']), + \ 'blacklist': lsp_settings#get('sourcekit-lsp', 'blacklist', []), + \ 'config': lsp_settings#get('sourcekit-lsp', 'config', {}), + \ 'workspace_config': lsp_settings#get('sourcekit-lsp', 'workspace_config', {}), + \ } +augroup END -- cgit v1.2.3-54-g00ecf From 1c0320ac06ee04bfe564f0490eae25c63bf41084 Mon Sep 17 00:00:00 2001 From: shirokuro <46kuro212@gmail.com> Date: Thu, 26 Dec 2019 01:32:43 +0900 Subject: Add install instruction for rls --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 154cc32..b6b350e 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ Plug 'mattn/vim-lsp-settings' ## Usage +If you install rls already, you can use rls without configurations. But if you not installed rls yet, you can install it by following [this instruction](https://github.com/rust-lang/rls#setup). + If you install clangd already, you can use clangd for C/C++ without configurations. But if you install clang with named clangd-6.0, you can replace executable like below: ```vim -- cgit v1.2.3-54-g00ecf From 580e73c180182b2c286f064aa3e5541545bc741b Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 26 Dec 2019 09:21:21 +0900 Subject: Update README.md Closes #20 --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 7920551..25df423 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,21 @@ Language Servers is not easily to install. Visual Studio Code provide easy way t For [vim-plug](https://github.com/junegunn/vim-plug) plugin manager: ```viml +Plug 'prabirshrestha/async.vim' +Plug 'prabirshrestha/asyncomplete.vim' +Plug 'prabirshrestha/asyncomplete-lsp.vim' +Plug 'prabirshrestha/vim-lsp' Plug 'mattn/vim-lsp-settings' ``` +You need to install both vim-lsp and its accompanying plugins and vim-lsp-settings. + ### Notice If you use plugin manager that is merging plugins (ex. dein), Please setting stop merging work(ex. dein / merged = 0). -*reason*: +_reason_: + Servers are installed in ./servers directory at the caching area. But when rebuild the cache, any merging plugin manager erases old cached files(include ./servers and server execute files) before install. -- cgit v1.2.3-54-g00ecf From ae6c4e51c20d382d79dd5579abf8bf7fbe9237af Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 26 Dec 2019 09:22:35 +0900 Subject: Link --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 25df423..94fcb9d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # vim-lsp-settings -Auto configurations for Language Server for vim-lsp +Auto configurations for Language Server for [vim-lsp](https://github.com/prabirshrestha/vim-lsp) ## Introduction @@ -18,7 +18,7 @@ Plug 'prabirshrestha/vim-lsp' Plug 'mattn/vim-lsp-settings' ``` -You need to install both vim-lsp and its accompanying plugins and vim-lsp-settings. +You need to install both [vim-lsp](https://github.com/prabirshrestha/vim-lsp) and its accompanying plugins and vim-lsp-settings. ### Notice -- cgit v1.2.3-54-g00ecf From 2cc3323979d3e454dbc217633e309e4475b38e48 Mon Sep 17 00:00:00 2001 From: Prabir Date: Thu, 26 Dec 2019 14:54:25 -0800 Subject: add reason-language-server to README.md --- README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'README.md') diff --git a/README.md b/README.md index 94fcb9d..e26293c 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ Currently, no way to uninstall/update server. Run this command again, newer vers | JSON | json-languageserver | Yes | | Swift | sourcekit-lsp | No | | COBOL | cobol-language-support | Yes | +| Reason | reason-language-server | Yes | ## License -- cgit v1.2.3-54-g00ecf