Using nui to override functions in the vim.ui module #69
VonHeikemen
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Related discussion: #50 Related Plugin: https://github.com/stevearc/dressing.nvim
I just added a Wiki page for https://github.com/MunifTanjim/nui.nvim/wiki/vim.ui
I don't really wanna do that. Reasons described here: #50 (comment) I hope this helps 😃 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On neovim 0.6 there is this new module
vim.ui
(see :help lua-ui) which, if I understand correctly, allows plugin authors to rely on certain "components" to ask users for information. At the same time, the user can overwrite the functions on this module so the UI that is rendered can be whatever they want.So for example, a plugin author can have code like this on their plugins.
And the user on their config can override
vim.ui.input
.I think it would be a good idea to have documented somewhere how people can use
nui
to override the functions onvim.ui
. Or even provide a module that does it.Beta Was this translation helpful? Give feedback.
All reactions