diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-25 09:14:57 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-25 09:15:20 +0900 |
commit | be6a709ded8cf09ecb58718240b07c646cf691e2 (patch) | |
tree | d0dbf5a57f44fa85e4909c2e1dc5efa6ad1b837d /settings | |
parent | 6bb33eb9bfeb5f2edf29f6fe517dd94014e67e88 (diff) | |
download | vim-lsp-settings-be6a709ded8cf09ecb58718240b07c646cf691e2.tar.gz vim-lsp-settings-be6a709ded8cf09ecb58718240b07c646cf691e2.tar.bz2 vim-lsp-settings-be6a709ded8cf09ecb58718240b07c646cf691e2.zip |
Add LspRegisterServer
Closes #7
Diffstat (limited to 'settings')
-rw-r--r-- | settings/bash-language-server.vim | 4 | ||||
-rw-r--r-- | settings/clangd.vim | 4 | ||||
-rw-r--r-- | settings/clojure-lsp.vim | 4 | ||||
-rw-r--r-- | settings/css-languageserver.vim | 4 | ||||
-rw-r--r-- | settings/docker-langserver.vim | 4 | ||||
-rw-r--r-- | settings/eclipse-jdt-ls.vim | 4 | ||||
-rw-r--r-- | settings/emmylua-ls.vim | 4 | ||||
-rw-r--r-- | settings/gopls.vim | 4 | ||||
-rw-r--r-- | settings/html-languageserver.vim | 4 | ||||
-rw-r--r-- | settings/intelephense-server.vim | 4 | ||||
-rw-r--r-- | settings/javascript-typescript-langserver.vim | 4 | ||||
-rw-r--r-- | settings/kotlin-language-server.vim | 4 | ||||
-rw-r--r-- | settings/lsp4xml.vim | 4 | ||||
-rw-r--r-- | settings/omnisharp-lsp.vim | 4 | ||||
-rw-r--r-- | settings/pyls.vim | 4 | ||||
-rw-r--r-- | settings/rls.vim | 4 | ||||
-rw-r--r-- | settings/solargraph.vim | 4 | ||||
-rw-r--r-- | settings/terraform-lsp.vim | 4 | ||||
-rw-r--r-- | settings/typescript-language-server.vim | 4 | ||||
-rw-r--r-- | settings/vim-language-server.vim | 4 | ||||
-rw-r--r-- | settings/yaml-language-server.vim | 4 |
21 files changed, 42 insertions, 42 deletions
diff --git a/settings/bash-language-server.vim b/settings/bash-language-server.vim index e33cdde..a7e28da 100644 --- a/settings/bash-language-server.vim +++ b/settings/bash-language-server.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_bash_language_server au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'bash-language-server', \ 'cmd': {server_info->lsp_settings#get('bash-language-server', 'cmd', [lsp_settings#exec_path('bash-language-server'), 'start'])}, \ 'root_uri':{server_info->lsp_settings#get('bash-language-server', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -8,5 +8,5 @@ augroup vimlsp_settings_bash_language_server \ 'blacklist': lsp_settings#get('bash-language-server', 'blacklist', []), \ 'config': lsp_settings#get('bash-language-server', 'config', {}), \ 'workspace_config': lsp_settings#get('bash-language-server', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/clangd.vim b/settings/clangd.vim index 60ff8af..26632a9 100644 --- a/settings/clangd.vim +++ b/settings/clangd.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_clangd au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'clangd', \ 'cmd': {server_info->lsp_settings#get('clangd', 'cmd', [lsp_settings#exec_path('clangd')])}, \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/']))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_clangd \ 'blacklist': lsp_settings#get('clangd', 'blacklist', []), \ 'config': lsp_settings#get('clangd', 'config', {}), \ 'workspace_config': lsp_settings#get('clangd', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/clojure-lsp.vim b/settings/clojure-lsp.vim index fce7d0d..8f727fe 100644 --- a/settings/clojure-lsp.vim +++ b/settings/clojure-lsp.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_clojure_lsp au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'clojure-lsp', \ 'cmd': {server_info->lsp_settings#get('clojure-lsp', 'cmd', [lsp_settings#exec_path('clojure-lsp')])}, \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/']))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_clojure_lsp \ 'blacklist': lsp_settings#get('clojure-lsp', 'blacklist', []), \ 'config': lsp_settings#get('clojure-lsp', 'config', {}), \ 'workspace_config': lsp_settings#get('clojure-lsp', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/css-languageserver.vim b/settings/css-languageserver.vim index 6cec07d..93f83b9 100644 --- a/settings/css-languageserver.vim +++ b/settings/css-languageserver.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_css_languageserver au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'css-languageserver', \ 'cmd': {server_info->lsp_settings#get('css-languageserver', 'cmd', [lsp_settings#exec_path('css-languageserver'), '--stdio'])}, \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/']))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_css_languageserver \ 'blacklist': lsp_settings#get('css-languageserver', 'blacklist', []), \ 'config': lsp_settings#get('css-languageserver', 'config', v:null), \ 'workspace_config': lsp_settings#get('css-languageserver', 'workspace_config', {'css-languageserver': {'css.lint.validProperties': [], 'less.lint.validProperties': [], 'scss.lint.validProperties': []}}), - \ }) + \ } augroup END diff --git a/settings/docker-langserver.vim b/settings/docker-langserver.vim index a47f7c4..7fbf78c 100644 --- a/settings/docker-langserver.vim +++ b/settings/docker-langserver.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_dockerfile_language_server_nodejs au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'docker-langserver', \ 'cmd': {server_info->lsp_settings#get('docker-langserver', 'cmd', [lsp_settings#exec_path('docker-langserver'), '--stdio'])}, \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/']))}, @@ -8,5 +8,5 @@ augroup vimlsp_settings_dockerfile_language_server_nodejs \ 'blacklist': lsp_settings#get('docker-langserver', 'blacklist', []), \ 'config': lsp_settings#get('docker-langserver', 'config', {}), \ 'workspace_config': lsp_settings#get('docker-langserver', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/eclipse-jdt-ls.vim b/settings/eclipse-jdt-ls.vim index bf691be..32f9113 100644 --- a/settings/eclipse-jdt-ls.vim +++ b/settings/eclipse-jdt-ls.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_eclipse_jdt_ls au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'eclipse-jdt-ls', \ 'cmd': {server_info->lsp_settings#get('eclipse-jdt-ls', 'cmd', [lsp_settings#exec_path('eclipse-jdt-ls')])}, \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/']))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_eclipse_jdt_ls \ 'blacklist': lsp_settings#get('eclipse-jdt-ls', 'blacklist', []), \ 'config': lsp_settings#get('eclipse-jdt-ls', 'config', {}), \ 'workspace_config': lsp_settings#get('eclipse-jdt-ls', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/emmylua-ls.vim b/settings/emmylua-ls.vim index 7a0afd0..92c435c 100644 --- a/settings/emmylua-ls.vim +++ b/settings/emmylua-ls.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_emmylua_ls au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'emmylua-ls', \ 'cmd': {server_info->lsp_settings#get('emmylua-ls', 'cmd', [lsp_settings#exec_path('emmylua-ls')])}, \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/']))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_emmylua_ls \ 'blacklist': lsp_settings#get('emmylua-ls', 'blacklist', []), \ 'config': lsp_settings#get('emmylua-ls', 'config', {}), \ 'workspace_config': lsp_settings#get('emmylua-ls', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/gopls.vim b/settings/gopls.vim index ce5516a..86965cc 100644 --- a/settings/gopls.vim +++ b/settings/gopls.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_gopls au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'gopls', \ 'cmd': {server_info->lsp_settings#get('gopls', 'cmd', [lsp_settings#exec_path('gopls')])}, \ 'root_uri':{server_info->lsp_settings#get('gopls', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/', 'go.mod'])))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_gopls \ 'blacklist': lsp_settings#get('gopls', 'blacklist', []), \ 'config': lsp_settings#get('gopls', 'config', {}), \ 'workspace_config': lsp_settings#get('gopls', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/html-languageserver.vim b/settings/html-languageserver.vim index aec79ba..7e65632 100644 --- a/settings/html-languageserver.vim +++ b/settings/html-languageserver.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_html_languageserver au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'html-languageserver', \ 'cmd': {server_info->lsp_settings#get('html-languageserver', 'cmd', [lsp_settings#exec_path('html-languageserver'), '--stdio'])}, \ 'root_uri':{server_info->lsp_settings#get('html-langserver', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_html_languageserver \ 'blacklist': lsp_settings#get('html-languageserver', 'blacklist', []), \ 'config': lsp_settings#get('html-languageserver', 'config', {}), \ 'workspace_config': lsp_settings#get('html-languageserver', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/intelephense-server.vim b/settings/intelephense-server.vim index 1d1d583..5c0f79c 100644 --- a/settings/intelephense-server.vim +++ b/settings/intelephense-server.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_intelephense_server au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'intelephense', \ 'cmd': {server_info->lsp_settings#get('intelephense', 'cmd', [lsp_settings#exec_path('intelephense-server'), '--stdio'])}, \ 'root_uri':{server_info->lsp_settings#get('intelephense', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -8,5 +8,5 @@ augroup vimlsp_settings_intelephense_server \ 'blacklist': lsp_settings#get('intelephense', 'blacklist', []), \ 'config': lsp_settings#get('intelephense', 'config', {}), \ 'workspace_config': lsp_settings#get('intelephense', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/javascript-typescript-langserver.vim b/settings/javascript-typescript-langserver.vim index 1ed4341..71126da 100644 --- a/settings/javascript-typescript-langserver.vim +++ b/settings/javascript-typescript-langserver.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_javascript_typescript_langserver au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'javascript-typescript-langserver', \ 'cmd': {server_info->lsp_settings#get('javascript-typescript-langserver', 'cmd', [lsp_settings#exec_path('javascript-typescript-langserver')])}, \ 'root_uri':{server_info->lsp_settings#get('javascript-typescript-langserver', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_javascript_typescript_langserver \ 'blacklist': lsp_settings#get('javascript-typescript-langserver', 'blacklist', []), \ 'config': lsp_settings#get('javascript-typescript-langserver', 'config', {}), \ 'workspace_config': lsp_settings#get('javascript-typescript-langserver', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/kotlin-language-server.vim b/settings/kotlin-language-server.vim index a11bc49..479805b 100644 --- a/settings/kotlin-language-server.vim +++ b/settings/kotlin-language-server.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_kotlin_language_server au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'kotlin-language-server', \ 'cmd': {server_info->lsp_settings#get('kotlin-language-server', 'cmd', [lsp_settings#exec_path('kotlin-language-server')])}, \ 'root_uri':{server_info->lsp_settings#get('kotlin-language-server', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_kotlin_language_server \ 'blacklist': lsp_settings#get('kotlin-language-server', 'blacklist', []), \ 'config': lsp_settings#get('kotlin-language-server', 'config', {}), \ 'workspace_config': lsp_settings#get('kotlin-language-server', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/lsp4xml.vim b/settings/lsp4xml.vim index 21fcfd5..79beafe 100644 --- a/settings/lsp4xml.vim +++ b/settings/lsp4xml.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_lsp4xml au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'lsp4xml', \ 'cmd': {server_info->lsp_settings#get('lsp4xml', 'cmd', [lsp_settings#exec_path('lsp4xml')])}, \ 'root_uri':{server_info->lsp_settings#get('lsp4xml', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -8,5 +8,5 @@ augroup vimlsp_settings_lsp4xml \ 'blacklist': lsp_settings#get('lsp4xml', 'blacklist', []), \ 'config': lsp_settings#get('lsp4xml', 'config', {}), \ 'workspace_config': lsp_settings#get('lsp4xml', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/omnisharp-lsp.vim b/settings/omnisharp-lsp.vim index f029f12..1ce7fc4 100644 --- a/settings/omnisharp-lsp.vim +++ b/settings/omnisharp-lsp.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_omnisharp_lsp au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'omnisharp-lsp', \ 'root_uri':{server_info->lsp_settings#get('omnisharp-lsp', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, \ 'initialization_options': lsp_settings#get('omnisharp-lsp', 'initialization_options', v:null), @@ -8,5 +8,5 @@ augroup vimlsp_settings_omnisharp_lsp \ 'blacklist': lsp_settings#get('omnisharp-lsp', 'blacklist', []), \ 'config': lsp_settings#get('omnisharp-lsp', 'config', {}), \ 'workspace_config': lsp_settings#get('omnisharp-lsp', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/pyls.vim b/settings/pyls.vim index 19de921..db7db34 100644 --- a/settings/pyls.vim +++ b/settings/pyls.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_pyls au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'pyls', \ 'cmd': {server_info->lsp_settings#get('pyls', 'cmd', [lsp_settings#exec_path('pyls')])}, \ 'root_uri':{server_info->lsp_settings#get('pyls', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_pyls \ 'blacklist': lsp_settings#get('pyls', 'blacklist', []), \ 'config': lsp_settings#get('pyls', 'config', {}), \ 'workspace_config': lsp_settings#get('pyls', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/rls.vim b/settings/rls.vim index 7e1847d..10f2376 100644 --- a/settings/rls.vim +++ b/settings/rls.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_rls au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'rls', \ 'cmd': {server_info->lsp_settings#get('rls', 'cmd', [lsp_settings#exec_path('rls')])}, \ 'root_uri':{server_info->lsp_settings#get('rls', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_rls \ 'blacklist': lsp_settings#get('rls', 'blacklist', []), \ 'config': lsp_settings#get('rls', 'config', {}), \ 'workspace_config': lsp_settings#get('rls', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/solargraph.vim b/settings/solargraph.vim index 377d4a8..796ee0a 100644 --- a/settings/solargraph.vim +++ b/settings/solargraph.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_solargraph au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'solargraph', \ 'cmd': {server_info->lsp_settings#get('solargraph', 'cmd', [lsp_settings#exec_path('solargraph'), 'stdio'])}, \ 'root_uri':{server_info->lsp_settings#get('solargraph', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_solargraph \ 'blacklist': lsp_settings#get('solargraph', 'blacklist', []), \ 'config': lsp_settings#get('solargraph', 'config', {}), \ 'workspace_config': lsp_settings#get('solargraph', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/terraform-lsp.vim b/settings/terraform-lsp.vim index 52d0526..1df13cb 100644 --- a/settings/terraform-lsp.vim +++ b/settings/terraform-lsp.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_terraform_lsp au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'terraform-lsp', \ 'cmd': {server_info->lsp_settings#get('terraform-lsp', 'cmd', [lsp_settings#exec_path('terraform-lsp')])}, \ 'root_uri':{server_info->lsp_settings#get('terraform-lsp', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -8,5 +8,5 @@ augroup vimlsp_settings_terraform_lsp \ 'blacklist': lsp_settings#get('terraform-lsp', 'blacklist', []), \ 'config': lsp_settings#get('terraform-lsp', 'config', {}), \ 'workspace_config': lsp_settings#get('terraform-lsp', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/typescript-language-server.vim b/settings/typescript-language-server.vim index def6535..400452a 100644 --- a/settings/typescript-language-server.vim +++ b/settings/typescript-language-server.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_typescript_language_server au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'typescript-language-server', \ 'cmd': {server_info->lsp_settings#get('typescript-language-server', 'cmd', [lsp_settings#exec_path('typescript-language-server'), '--stdio'])}, \ 'root_uri':{server_info->lsp_settings#get('typescript-language-server', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_typescript_language_server \ 'blacklist': lsp_settings#get('typescript-language-server', 'blacklist', []), \ 'config': lsp_settings#get('typescript-language-server', 'config', {}), \ 'workspace_config': lsp_settings#get('typescript-language-server', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/vim-language-server.vim b/settings/vim-language-server.vim index 971331b..3281ef1 100644 --- a/settings/vim-language-server.vim +++ b/settings/vim-language-server.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_vim_language_server au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'vim-language-server', \ 'cmd': {server_info->lsp_settings#get('vim-language-server', 'cmd', [lsp_settings#exec_path('vim-language-server'), '--stdio'])}, \ 'root_uri':{server_info->lsp_settings#get('vim-language-server', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -9,5 +9,5 @@ augroup vimlsp_settings_vim_language_server \ 'blacklist': lsp_settings#get('bash-language-server', 'blacklist', []), \ 'config': lsp_settings#get('bash-language-server', 'config', {}), \ 'workspace_config': lsp_settings#get('bash-language-server', 'workspace_config', {}), - \ }) + \ } augroup END diff --git a/settings/yaml-language-server.vim b/settings/yaml-language-server.vim index 58b5ffe..83e36e7 100644 --- a/settings/yaml-language-server.vim +++ b/settings/yaml-language-server.vim @@ -1,6 +1,6 @@ augroup vimlsp_settings_yaml_language_server au! - autocmd User lsp_setup ++once call lsp#register_server({ + LspRegisterServer { \ 'name': 'yaml-language-server', \ 'cmd': {server_info->lsp_settings#get('yaml-language-server', 'cmd', [lsp_settings#exec_path('yaml-language-server'), '--stdio'])}, \ 'root_uri':{server_info->lsp_settings#get('yaml-language-server', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/'])))}, @@ -8,5 +8,5 @@ augroup vimlsp_settings_yaml_language_server \ 'blacklist': lsp_settings#get('yaml-language-server', 'blacklist', []), \ 'config': lsp_settings#get('yaml-language-server', 'config', {}), \ 'workspace_config': lsp_settings#get('yaml-language-server', 'workspace_config', {}), - \ }) + \ } augroup END |