aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/vim.lua
diff options
context:
space:
mode:
authorAshkan Kiani <ashkan.k.kiani@gmail.com>2019-11-13 12:55:26 -0800
committerBjörn Linse <bjorn.linse@gmail.com>2019-11-13 21:55:26 +0100
commit00dc12c5d8454a2d3c6806710f63bbb446076e96 (patch)
tree739a7b1f1343f2886868217ce0623717092304b2 /src/nvim/lua/vim.lua
parentdb436d5277a605606ac92cfabe9e58d86f48f64e (diff)
downloadrneovim-00dc12c5d8454a2d3c6806710f63bbb446076e96.tar.gz
rneovim-00dc12c5d8454a2d3c6806710f63bbb446076e96.tar.bz2
rneovim-00dc12c5d8454a2d3c6806710f63bbb446076e96.zip
lua LSP client: initial implementation (#11336)
Mainly configuration and RPC infrastructure can be considered "done". Specific requests and their callbacks will be improved later (and also served by plugins). There are also some TODO:s for the client itself, like incremental updates. Co-authored by at-tjdevries and at-h-michael, with many review/suggestion contributions.
Diffstat (limited to 'src/nvim/lua/vim.lua')
-rw-r--r--src/nvim/lua/vim.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua
index 2b4c5486c7..ce24d1716d 100644
--- a/src/nvim/lua/vim.lua
+++ b/src/nvim/lua/vim.lua
@@ -256,6 +256,13 @@ local function __index(t, key)
-- Expose all `vim.shared` functions on the `vim` module.
t[key] = require('vim.shared')[key]
return t[key]
+ elseif require('vim.uri')[key] ~= nil then
+ -- Expose all `vim.uri` functions on the `vim` module.
+ t[key] = require('vim.uri')[key]
+ return t[key]
+ elseif key == 'lsp' then
+ t.lsp = require('vim.lsp')
+ return t.lsp
end
end