This answer does not address
evil-vimish-mode. Instead, if
you're agnostic about which particular package does the folding
for you, you can try the built-in Hideshow mode
From the manual:
Hideshow mode is a buffer-local minor mode that allows you to
selectively display portions of a program, which are referred to
as blocks. Type M-x hs-minor-mode to toggle this minor mode (see
When you use Hideshow mode to hide a block, the block disappears
from the screen, to be replaced by an ellipsis (three periods in a
row). Just what constitutes a block depends on the major mode. In
C mode and related modes, blocks are delimited by braces...
You can enable it with:
(add-hook 'js-mode-hook #'hs-minor-mode)
It's got some odd default keybindings (
C-c @ ...), so you'll
probably want to rebind them to something more comfortable.
Here's an old blog post from
this old blog post
where it discusses "Code Folding."