aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-23 01:32:08 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-23 01:32:08 +0900
commitb6c8c4443261dc5f5f932143f3ace78c6bcf4923 (patch)
treef7549734392747a6082b24989e2a13b7f9d25c37
parenta31b6776c4a76c3720a8adeeb2c715753fe49986 (diff)
downloadvim-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.vim3
-rw-r--r--settings.json8
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",