diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-23 01:32:08 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-23 01:32:08 +0900 |
commit | b6c8c4443261dc5f5f932143f3ace78c6bcf4923 (patch) | |
tree | f7549734392747a6082b24989e2a13b7f9d25c37 | |
parent | a31b6776c4a76c3720a8adeeb2c715753fe49986 (diff) | |
download | vim-lsp-settings-b6c8c4443261dc5f5f932143f3ace78c6bcf4923.tar.gz vim-lsp-settings-b6c8c4443261dc5f5f932143f3ace78c6bcf4923.tar.bz2 vim-lsp-settings-b6c8c4443261dc5f5f932143f3ace78c6bcf4923.zip |
Add disabled flag
-rw-r--r-- | plugin/lsp_settings.vim | 3 | ||||
-rw-r--r-- | settings.json | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim index ee25582..07cc35d 100644 --- a/plugin/lsp_settings.vim +++ b/plugin/lsp_settings.vim @@ -200,6 +200,9 @@ function! s:vimlsp_load_or_suggest(ft) abort let l:found = 0 for l:server in s:settings[a:ft] + if s:vimlsp_settings_get(l:server.command, 'disabled', 0) + continue + endif let l:command = s:vimlsp_settings_get(l:server.command, 'cmd', l:server.command) if type(l:command) == type([]) let l:command = l:command[0] diff --git a/settings.json b/settings.json index f932004..bae706a 100644 --- a/settings.json +++ b/settings.json @@ -426,6 +426,14 @@ ] } ], + "perl": [ + { + "command": "perl-languageserver", + "requires": [ + "cpanm" + ] + } + ], "yaml": [ { "command": "yaml-language-server", |