aboutsummaryrefslogtreecommitdiff
path: root/settings/sourcekit-lsp.vim
diff options
context:
space:
mode:
Diffstat (limited to 'settings/sourcekit-lsp.vim')
-rw-r--r--settings/sourcekit-lsp.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/sourcekit-lsp.vim b/settings/sourcekit-lsp.vim
new file mode 100644
index 0000000..0d0c155
--- /dev/null
+++ b/settings/sourcekit-lsp.vim
@@ -0,0 +1,13 @@
+augroup vimlsp_settings_sourcekit_lsp
+ au!
+ LspRegisterServer {
+ \ 'name': 'sourcekit-lsp',
+ \ 'cmd': {server_info->lsp_settings#get('sourcekit-lsp', 'cmd', [lsp_settings#exec_path('sourcekit-lsp')])},
+ \ 'initialization_options': lsp_settings#get('sourcekit-lsp', 'initialization_options', {}),
+ \ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), ['.git/', 'Package.swift', '.xcodeproj', '.xcworkspace', 'Cartfile', 'Podfile']))},
+ \ 'whitelist': lsp_settings#get('sourcekit-lsp', 'whitelist', ['swift']),
+ \ 'blacklist': lsp_settings#get('sourcekit-lsp', 'blacklist', []),
+ \ 'config': lsp_settings#get('sourcekit-lsp', 'config', {}),
+ \ 'workspace_config': lsp_settings#get('sourcekit-lsp', 'workspace_config', {}),
+ \ }
+augroup END