Skip to content
Discussion options

You must be logged in to vote

There are several issues here:

  • WinResized is not the right event for this as it triggers whenever regular Neovim window is resized. You'd want VimResized to detect when terminal's instance is resized.
  • Executing setup() is a bit too much in this particular context. In general, executing setup() for any 'mini.nvim' module is recommended to 1) enable plugin with its initial config; or 2) perform an action that is specific to setup() (like create mappings). For "on the fly" config modification it is usually enough to modify config field (in this case MiniFiles.config) directly. See more "Setup" section of "General principles".
  • There is MiniFiles.refresh() to update the config of the currentl…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.files
2 participants