Can config be changed on-the-fly? #429
Unanswered
MunifTanjim
asked this question in
Internal Development
Replies: 1 comment 3 replies
-
Config can be changed on the fly by calling the setup() function again. The caveat here being that I don't think this is 100% clean. In particular, an existing tree may retain state that is related to the prior config. It should work as desired if you call setup with your new config, then create a new tab and close the original tab. Closing the tab will dispose of all state in that tab. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I want to test the UI to see how it is rendered for different configs, what are my options?
Can config be changed inside each
it(...)
block?Or do I need run
nvim --headless --noplugin -u tests/....lua -c "lua require('plenary.test_harness')...
command for each config?Beta Was this translation helpful? Give feedback.
All reactions