diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-27 12:11:58 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-27 12:11:58 +0900 |
commit | 6527db6734a730842f4d2cdf8dd5d8c1a2596d1a (patch) | |
tree | 42c9c9335e4af1450474ce3d8651aa7f390d32aa /README.md | |
parent | 2b2cc38c2dc2f21321c8f99d25645735bb2db72e (diff) | |
parent | 0d0827debc115f214b69621bb63e27b18dce2b4e (diff) | |
download | vim-lsp-settings-6527db6734a730842f4d2cdf8dd5d8c1a2596d1a.tar.gz vim-lsp-settings-6527db6734a730842f4d2cdf8dd5d8c1a2596d1a.tar.bz2 vim-lsp-settings-6527db6734a730842f4d2cdf8dd5d8c1a2596d1a.zip |
Merge branch 'master' into efm
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 58 |
1 files changed, 39 insertions, 19 deletions
@@ -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 |