Found a solution.
It works if I put this into my config:
(setq neo-window-fixed-size nil)
The only downside is that neotree does not remember the window width. When you switch buffers it will reset the width back to the default value. There is a related issue on github.
Same issue here. I could solve it disabling neo-autorefresh variable.
My configuration with use-package:
:bind (([f8] . neotree-toggle))
:config (setq neo-autorefresh nil))
ivy has more than one way of exiting the selection process, not just pressing enter.
In particular ivy-immediate-done which is bound to C-M-j has the following help text
exit with the current action, calling it on the /current input/ instead of the current candidate. This is useful especially when creating new files or directories - often the input will ...
Put this on your emacs configuration file:
;; Set the neo-window-width to the current width of the
;; neotree window, to trick neotree into resetting the
;; width back to the actual window width.
;; Fixes: https://github.com/jaypei/emacs-neotree/issues/262
Found here: https://github.com/jaypei/emacs-neotree/issues/117#issuecomment-126751086
add (setq-default neo-show-hidden-files t) to your init.el.
Just in case you use Spacemacs:
add '(neo-show-hidden-files nil) in custom-set-variables of your .spacemacs file.