aboutsummaryrefslogtreecommitdiff
path: root/settings/pyls.vim
diff options
context:
space:
mode:
Diffstat (limited to 'settings/pyls.vim')
-rw-r--r--settings/pyls.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/settings/pyls.vim b/settings/pyls.vim
new file mode 100644
index 0000000..177a429
--- /dev/null
+++ b/settings/pyls.vim
@@ -0,0 +1,12 @@
+augroup vimlsp_settings_pyls
+ au!
+ autocmd User lsp_setup call lsp#register_server({
+ \ 'name': 'pyls',
+ \ 'cmd': lsp_settings#get('pyls', 'cmd', {server_info->[lsp_settings#exec_path('pyls')]}),
+ \ 'initialization_options': lsp_settings#get('pyls', 'initialization_options', v:null),
+ \ 'whitelist': lsp_settings#get('pyls', 'whitelist', ['python']),
+ \ 'blacklist': lsp_settings#get('pyls', 'blacklist', []),
+ \ 'config': lsp_settings#get('pyls', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('pyls', 'workspace_config', {}),
+ \ })
+augroup END