aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/lsp_settings.vim2
-rw-r--r--schema.json4
-rw-r--r--settings.json1
3 files changed, 6 insertions, 1 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim
index 3d4ee3d..ccab170 100644
--- a/plugin/lsp_settings.vim
+++ b/plugin/lsp_settings.vim
@@ -214,7 +214,7 @@ 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)
+ if get(l:server, 'disabled', 0) || s:vimlsp_settings_get(l:server.command, 'disabled', 0)
continue
endif
let l:default = get(g:, 'lsp_settings_' . a:ft, '')
diff --git a/schema.json b/schema.json
index c9ccb91..2537af6 100644
--- a/schema.json
+++ b/schema.json
@@ -23,6 +23,10 @@
"description": "define name of language server",
"type": "string"
},
+ "diabled": {
+ "description": "disable this server",
+ "type": "boolean"
+ },
"requires": {
"description": "define commands to install this language server",
"type": "array",
diff --git a/settings.json b/settings.json
index 2c971d5..2baf0b4 100644
--- a/settings.json
+++ b/settings.json
@@ -3,6 +3,7 @@
"_": [
{
"command": "efm-langserver",
+ "disabled": true,
"requires": []
}
],