Skip to content

How to run intro.lua? #2

Answered by mehalter
Proful asked this question in Q&A
Mar 21, 2024 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

You can put this really anywhere where you want to build a component and run it. A good test would be to just put it in your ~/.config/nvim/lua folder so say you put it at ~/.config/nvim/lua/nui_components_intro.lua then when you run neovim you would simply run :lua require("nui_components_intro") and it would execute the code.

That require just loads that module and run the code inside of it. If you have a function somewhere else like attached to a key binding or something where you want to build a component you can do it there or organize it somewhere else in your config and then require it

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Proful
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mehalter
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1 on March 22, 2024 16:04.