I have the problem that, even when I'm in a projectile project, NeoTree always switches to the directory of the currently open file in the active buffer. Which is annoying to say the least.

It used to behave the right way, but (probably with a recent update?) that changed. How can I get the correct behaviour back?


For people googling that, if you don't have the "use-package" package, you can also simply put that in your .emacs:

(setq neo-autorefresh nil)
(require 'neotree)

Same issue here. I could solve it disabling neo-autorefresh variable.

My configuration with use-package:

(use-package neotree
  :ensure t
  :bind (([f8] . neotree-toggle))
  :config (setq neo-autorefresh nil))

You describe the behavior of neotree with the neo-smart-open variable set. Make sure this is set to nil in your ~.emacs, or simply remove this config, as the default value for this is nil.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.