mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Fix root_uri_patterns
This commit is contained in:
@@ -345,15 +345,15 @@ function! s:vim_lsp_suggest_plugin() abort
|
||||
let l:ext = expand('%:e')
|
||||
for l:ft in keys(s:settings)
|
||||
for l:server in s:settings[l:ft]
|
||||
if !has_key(l:server, 'vim-plugin')
|
||||
if !has_key(l:server, 'vim_plugin')
|
||||
continue
|
||||
endif
|
||||
if index(l:server['vim-plugin']['extensions'], l:ext) == -1
|
||||
if index(l:server['vim_plugin']['extensions'], l:ext) == -1
|
||||
continue
|
||||
endif
|
||||
redraw
|
||||
echohl Directory
|
||||
echomsg printf('Please install vim-plugin "%s" to enable Language Server', l:server['vim-plugin']['name'])
|
||||
echomsg printf('Please install vim-plugin "%s" to enable Language Server', l:server['vim_plugin']['name'])
|
||||
echohl None
|
||||
return
|
||||
endfor
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
"patternProperties": {
|
||||
"^([a-z0-9_-]+)+$": {
|
||||
"description": "define name of language server",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"blacklist": {
|
||||
"items": {
|
||||
@@ -26,8 +25,8 @@
|
||||
"type": "object"
|
||||
},
|
||||
"disabled": {
|
||||
"description": "set true if you want to enable server",
|
||||
"default": true,
|
||||
"description": "set true if you want to enable server",
|
||||
"type": "boolean"
|
||||
},
|
||||
"initialization_options": {
|
||||
@@ -39,6 +38,15 @@
|
||||
"pattern": "^file://\\S+$",
|
||||
"type": "string"
|
||||
},
|
||||
"root_uri_patterns": {
|
||||
"default": [],
|
||||
"description": "define patterns with file or directory names for finding root_uri",
|
||||
"items": {
|
||||
"description": "file or directory name",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"whitelist": {
|
||||
"items": {
|
||||
"description": "define name of whitelisted language server",
|
||||
@@ -50,7 +58,8 @@
|
||||
"workspace_config": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"title": "vim-lsp-settings-local",
|
||||
|
||||
11
schema.json
11
schema.json
@@ -32,7 +32,16 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"vim-plugin": {
|
||||
"root_uri_patterns": {
|
||||
"default": [],
|
||||
"description": "define patterns with file or directory names for finding root_uri",
|
||||
"items": {
|
||||
"description": "file or directory name",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"vim_plugin": {
|
||||
"additionalProperties": false,
|
||||
"default": {},
|
||||
"description": "define suggestion for vim-plugin",
|
||||
|
||||
Reference in New Issue
Block a user