-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from mattn/lsp-register-server
Add LspRegisterServer
- Loading branch information
Showing
24 changed files
with
63 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
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/'])))}, | ||
\ 'whitelist': lsp_settings#get('bash-language-server', 'whitelist', ['sh']), | ||
\ '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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
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/']))}, | ||
\ 'whitelist': lsp_settings#get('docker-langserver', 'whitelist', ['dockerfile']), | ||
\ '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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
augroup vimlsp_settings_fortls | ||
au! | ||
autocmd User lsp_setup ++once call lsp#register_server({ | ||
LspRegisterServer { | ||
\ 'name': 'fortls', | ||
\ 'cmd': {server_info->lsp_settings#get('fortls', 'cmd', [lsp_settings#exec_path('fortls')])}, | ||
\ 'initialization_options': lsp_settings#get('fortls', 'initialization_options', v:null), | ||
\ 'whitelist': lsp_settings#get('fortls', 'whitelist', ['fortran']), | ||
\ 'blacklist': lsp_settings#get('fortls', 'blacklist', []), | ||
\ 'config': lsp_settings#get('fortls', 'config', {}), | ||
\ 'workspace_config': lsp_settings#get('fortls', 'workspace_config', {}), | ||
\ }) | ||
\ } | ||
augroup END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
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/'])))}, | ||
\ 'whitelist': lsp_settings#get('intelephense', 'whitelist', ['php']), | ||
\ 'blacklist': lsp_settings#get('intelephense', 'blacklist', []), | ||
\ 'config': lsp_settings#get('intelephense', 'config', {}), | ||
\ 'workspace_config': lsp_settings#get('intelephense', 'workspace_config', {}), | ||
\ }) | ||
\ } | ||
augroup END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
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/'])))}, | ||
\ 'whitelist': lsp_settings#get('lsp4xml', 'whitelist', ['xml']), | ||
\ 'blacklist': lsp_settings#get('lsp4xml', 'blacklist', []), | ||
\ 'config': lsp_settings#get('lsp4xml', 'config', {}), | ||
\ 'workspace_config': lsp_settings#get('lsp4xml', 'workspace_config', {}), | ||
\ }) | ||
\ } | ||
augroup END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
augroup vimlsp_settings_metals | ||
au! | ||
autocmd User lsp_setup ++once call lsp#register_server({ | ||
LspRegisterServer { | ||
\ 'name': 'metals', | ||
\ 'cmd': {server_info->lsp_settings#get('metals', 'cmd', [lsp_settings#exec_path('metals')])}, | ||
\ 'root_uri':{server_info->lsp_settings#get('metals', 'root_uri', lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/', 'build.sbt'])))}, | ||
\ 'whitelist': lsp_settings#get('metals', 'whitelist', ['scala', 'sbt']), | ||
\ 'blacklist': lsp_settings#get('metals', 'blacklist', []), | ||
\ 'config': lsp_settings#get('metals', 'config', {}), | ||
\ 'workspace_config': lsp_settings#get('metals', 'workspace_config', {}), | ||
\ }) | ||
\ } | ||
augroup END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
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), | ||
\ 'whitelist': lsp_settings#get('omnisharp-lsp', 'whitelist', ['cs']), | ||
\ '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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
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/'])))}, | ||
\ 'whitelist': lsp_settings#get('terraform-lsp', 'whitelist', ['terraform']), | ||
\ '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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.