Breaking compatibility: Rename lsp_settings_xxx for filetypes to lsp_settings_filetype_xxx

This commit is contained in:
Yasuhiro Matsumoto
2020-03-06 14:55:57 +09:00
parent 9fac100cae
commit ba0797a13f
2 changed files with 3 additions and 3 deletions

View File

@@ -208,8 +208,8 @@ If you install ruby but not solargraph, you can install solargraph with followin
If you have some Language Servers and want to use specified the server:
```vim
let g:lsp_settings_perl = 'slp'
let g:lsp_settings_typescript = ['typescript-language-server', 'eslint-language-server']
let g:lsp_settings_filetype_perl = 'slp'
let g:lsp_settings_filetype_typescript = ['typescript-language-server', 'eslint-language-server']
```
When the servers are specifed in a list, these will be started at all.

View File

@@ -403,7 +403,7 @@ function! s:vim_lsp_load_or_suggest(ft) abort
command! -nargs=1 LspRegisterServer autocmd User lsp_setup call lsp#register_server(<args>)
endif
let l:default = get(g:, 'lsp_settings_' . a:ft, '')
let l:default = get(g:, 'lsp_settings_filetype_' . a:ft, '')
let l:found = 0
let l:disabled = 0