Skip to content

Conversation

@xyaman
Copy link

@xyaman xyaman commented Nov 4, 2025

I really like this plugin, but having it automatically override the current working directory has been inconvenient, as it affects other plugins and settings that rely on vim.fn.getcwd(), such as LSPs and fuzzy finders.

This PR adds a new configuration option: override_cwd. By default, it is set to true to preserve the existing behavior of changing working directory when opening dired.nvim. Setting it to false prevents dired from overriding the user’s cwd and instead uses the directory relative to the currently opened file, similar to netrw.

By default, `override_cwd` is true to preserve the current behavior of
changing Neovim's working directory when opening dired. Setting it to
false prevents dired from overriding the user's cwd and instead uses
the directory relative to the currently opened file, mimicking netrw.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant