diff options
author | Ashkan Kiani <ashkan.k.kiani@gmail.com> | 2019-11-24 02:28:48 -0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-11-24 02:28:48 -0800 |
commit | d0d38fc36e0c1602186aa540417070fa6c1e2746 (patch) | |
tree | 8b1816344eddc1b0b4e0d209239f5e5072b5171a /runtime/lua/vim/shared.lua | |
parent | 222637c341700294a059651bcea62d2e91795646 (diff) | |
download | rneovim-d0d38fc36e0c1602186aa540417070fa6c1e2746.tar.gz rneovim-d0d38fc36e0c1602186aa540417070fa6c1e2746.tar.bz2 rneovim-d0d38fc36e0c1602186aa540417070fa6c1e2746.zip |
Lua: vim.env, vim.{g,v,w,bo,wo} #11442
- Add vim variable meta accessors: vim.env, vim.{g,v,w,bo,wo}
- Redo gen_char_blob to generate multiple blobs instead of just one
so that multiple Lua modules can be inlined.
- Reorder vim.lua inclusion so that it can use previously defined C
functions and utility functions like vim.shared and vim.inspect things.
- Inline shared.lua into nvim, but also keep it available in runtime.
Diffstat (limited to 'runtime/lua/vim/shared.lua')
-rw-r--r-- | runtime/lua/vim/shared.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua index ff89acc524..6aa5f3bd9b 100644 --- a/runtime/lua/vim/shared.lua +++ b/runtime/lua/vim/shared.lua @@ -4,7 +4,7 @@ -- test-suite. If, in the future, Nvim itself is used to run the test-suite -- instead of "vanilla Lua", these functions could move to src/nvim/lua/vim.lua -local vim = {} +local vim = vim or {} --- Returns a deep copy of the given object. Non-table objects are copied as --- in a typical Lua assignment, whereas table objects are copied recursively. |