Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FUNC_API_REMOTE_ONLY in Lua/Vimscript #28437

Open
justinmk opened this issue Apr 21, 2024 · 0 comments
Open

FUNC_API_REMOTE_ONLY in Lua/Vimscript #28437

justinmk opened this issue Apr 21, 2024 · 0 comments
Labels
api libnvim, Nvim RPC API enhancement feature request
Milestone

Comments

@justinmk
Copy link
Member

Problem

FUNC_API_REMOTE_ONLY marks functions that require a channel id and these functions currently aren't usable from Lua/vimscript.

Expected behavior

Rename FUNC_API_REMOTE_ONLY to FUNC_API_CHAN_REQUIRED so that Lua/Vimscript can pass an explicit channel id. This allows those functions to be batched via nvim_exec_lua , and removes the last remaining use case of nvim_call_atomic. #28433

@justinmk justinmk added enhancement feature request api libnvim, Nvim RPC API labels Apr 21, 2024
@justinmk justinmk added this to the 0.11 milestone Apr 21, 2024
justinmk added a commit to justinmk/neovim that referenced this issue Apr 22, 2024
TODO:
FUNC_API_REMOTE_ONLY APIs such as `nvim_ui_*` cannot (yet) be used in
`nvim_exec_lua`. We can change FUNC_API_REMOTE_ONLY to allow
Vimscript/Lua to pass an explicit `channel_id`. neovim#28437
justinmk added a commit that referenced this issue Apr 22, 2024
TODO:
FUNC_API_REMOTE_ONLY APIs such as `nvim_ui_*` cannot (yet) be used in
`nvim_exec_lua`. We can change FUNC_API_REMOTE_ONLY to allow
Vimscript/Lua to pass an explicit `channel_id`. #28437
RandomChugokujin pushed a commit to RandomChugokujin/neovim that referenced this issue Apr 24, 2024
TODO:
FUNC_API_REMOTE_ONLY APIs such as `nvim_ui_*` cannot (yet) be used in
`nvim_exec_lua`. We can change FUNC_API_REMOTE_ONLY to allow
Vimscript/Lua to pass an explicit `channel_id`. neovim#28437
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api libnvim, Nvim RPC API enhancement feature request
Projects
None yet
Development

No branches or pull requests

1 participant