aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2020-11-25 12:07:02 -0800
committerGitHub <noreply@github.com>2020-11-25 21:07:02 +0100
commit0d83a1c43fbcefae5c96b53e81528553bba5a1ab (patch)
tree45d12288fee1f64dadfa53c24d73dedd52a80a00 /runtime/lua/vim/lsp/util.lua
parent2d5dd85eef3be0a0a4073964ddbb849c586bc6a1 (diff)
downloadrneovim-0d83a1c43fbcefae5c96b53e81528553bba5a1ab.tar.gz
rneovim-0d83a1c43fbcefae5c96b53e81528553bba5a1ab.tar.bz2
rneovim-0d83a1c43fbcefae5c96b53e81528553bba5a1ab.zip
LSP: Feature/add workspace folders (#12638)
* First implementation of workspace folders * Add completion for current directory * Add tracking of workspace folders * Add workspace folder listing * Add checks on adding/removing workspaces * Add appropriate initialization options * Add documentation * Make workspaceFolders available wherever client is
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 3deec6d74e..f78a36fda2 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1314,6 +1314,9 @@ function M.make_text_document_params()
return { uri = vim.uri_from_bufnr(0) }
end
+function M.make_workspace_params(added, removed)
+ return { event = { added = added; removed = removed; } }
+end
--- Returns visual width of tabstop.
---
--@see |softtabstop|