From 20a2b3d7dcd0e92ec48d39aba78eb12414013efc Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sat, 25 Jan 2020 10:13:01 +0900 Subject: Update README.md --- README.md | 58 +++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 39 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 5d311b9..c07c9f0 100644 --- a/README.md +++ b/README.md @@ -32,25 +32,6 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d ## 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: - -```vim -let g:lsp_settings = { -\ 'clangd': {'cmd': ['clangd-6.0']} -\} -``` - -Overridable keys are: - -* cmd (List ex: `['clangd-6.0', '-enable-snippets']`) -* initialization_options (Dictionary) -* whitelist (List) -* blacklist (List) -* config (Dictionary) -* workspace_config (Dictionary) - -If you install ruby but not solargraph, you can install solargraph with following command. - ``` :LspInstallServer ``` @@ -126,6 +107,45 @@ Finally, you have to install `@playlyfe/gql` into your project. $ npm install @playlyfe/gql --save-dev ``` +## Configurations + +Most of configurations are not required. + +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 +let g:lsp_settings = { +\ 'clangd': {'cmd': ['clangd-6.0']} +\} +``` + +Overridable keys are: + +* cmd (List ex: `['clangd-6.0', '-enable-snippets']`) +* initialization_options (Dictionary) +* whitelist (List) +* blacklist (List) +* config (Dictionary) +* workspace_config (Dictionary) + +If you install ruby but not solargraph, you can install solargraph with following command. + +If you have some Language Servers and want to use specified the server: + +```vim +let g:lsp_settings_perl = 'slp' +``` + +If you want to disable Language Server: + +```vim +let g:lsp_settings = { +\ 'perl-languageserver': { +\ 'disabled': 0, +\ } +\} +``` + ## License MIT -- cgit v1.2.3-54-g00ecf