diff options
author | nikolightsaber <103886134+nikolightsaber@users.noreply.github.com> | 2024-02-08 11:59:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 18:59:31 +0800 |
commit | b162adbb7ca4f980e938a4a06a49218a9ed496cf (patch) | |
tree | c97bee7d1c71b8d4cbd29b83ad33521c27e2a8da /runtime/lua/vim/lsp/log.lua | |
parent | 3f2d543ee8d01ce0d4515ed35b96e274b1668a54 (diff) | |
download | rneovim-b162adbb7ca4f980e938a4a06a49218a9ed496cf.tar.gz rneovim-b162adbb7ca4f980e938a4a06a49218a9ed496cf.tar.bz2 rneovim-b162adbb7ca4f980e938a4a06a49218a9ed496cf.zip |
feat(api): pass 0 to nvim_get_chan_info for current channel (#27321)
Getting current channel info was kind of annoying via RPC. Two
functions had to be called:
1. `nvim_get_api_info` which returns `[channel_id, meta_data]`.
- This results in `channel_id = api.nvim_get_api_info()[0]`.
- Here the meta_data is sent but never used.
2. Finally call `nvim_get_chan_info(channel_id)`.
This commit reduces the need for `nvim_get_api_info` as passing 0
returns current channel info.
Diffstat (limited to 'runtime/lua/vim/lsp/log.lua')
0 files changed, 0 insertions, 0 deletions