diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-01-01 06:30:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-01 06:30:29 -0800 |
commit | 070bd3ea231b6b98c9e9f1057fdbcf31d1877a70 (patch) | |
tree | 93d5aeb26b595e77041a6b2e73b32e8f1015bfc0 /runtime/lua/vim/lsp/protocol.lua | |
parent | 99eca048357b8ec72e84b45d21c2a38e25ed6ec0 (diff) | |
parent | ac6ebfcc1db8daf30533c42d5c4246bb95ec3d85 (diff) | |
download | rneovim-070bd3ea231b6b98c9e9f1057fdbcf31d1877a70.tar.gz rneovim-070bd3ea231b6b98c9e9f1057fdbcf31d1877a70.tar.bz2 rneovim-070bd3ea231b6b98c9e9f1057fdbcf31d1877a70.zip |
Merge #11604 "LSP: shrink API, improve docs"
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r-- | runtime/lua/vim/lsp/protocol.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua index ead90cc75a..f64b0b50e7 100644 --- a/runtime/lua/vim/lsp/protocol.lua +++ b/runtime/lua/vim/lsp/protocol.lua @@ -603,6 +603,8 @@ export interface WorkspaceClientCapabilities { } --]=] +--- Gets a new ClientCapabilities object describing the LSP client +--- capabilities. function protocol.make_client_capabilities() return { textDocument = { @@ -821,6 +823,8 @@ interface ServerCapabilities { experimental?: any; } --]] + +--- Creates a normalized object describing LSP server capabilities. function protocol.resolve_capabilities(server_capabilities) local general_properties = {} local text_document_sync_properties |