diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-10-09 22:13:11 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-10-14 01:27:10 +0100 |
commit | d4ed51eb4492d4358eb4ab0c939802f2a5fdc636 (patch) | |
tree | 6bdebbb39ba5a5c64175439a94d688314f089814 /runtime/lua/vim/lsp/util.lua | |
parent | 6b9cb665fa101299d8a6f67d6d7e4705da13abee (diff) | |
download | rneovim-d4ed51eb4492d4358eb4ab0c939802f2a5fdc636.tar.gz rneovim-d4ed51eb4492d4358eb4ab0c939802f2a5fdc636.tar.bz2 rneovim-d4ed51eb4492d4358eb4ab0c939802f2a5fdc636.zip |
feat(:source, nvim_exec): support script-local variables
Based on #13143 (and #11507) with changes:
- Omit script_type_E. Use sn_name == NULL to determine anon items.
- Keep SID_STR. Used by anon :source for .lua files (no item).
- Show SID in get_scriptname output (:verbose set).
- Factor item creation into new_script_item.
- Leave sc_seq = 0 (anon scripts don't re-use the same item when re-sourced).
- Add tests for anon :source.
Co-authored-by: Vikram Pal <vikrampal659@gmail.com>
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions