Repository navigation
Create mapping to show/hide dot-files and set CWD #2595
Contributing guidelines
Module(s)mini.files QuestionI have this in my lua file which used to work. Currently, 'g.' and 'g ' does not seem to work. Anyone has any idea how to fix this? This is also related to #1327 (comment). The 'l' keybind still works as expected. The reason I use 'g ' to toggle CWD is also for my grep search. I use |
Replies: 1 comment 3 replies
|
Hello @mau-mauricelim, Thanks for the question! The code you provided is correct. Also, given the neovim config in your dotfiles, the 'g.' seems to work as expected. I checked the following:
The output: Can you apply these steps on your machine and provide the output of Regarding The snacks.picker is not relevant here, as the mappings are buffer-local and only apply when the explorer provided by I tested with the latest nightly and with version 0.12.6 |
Using your dotfiles, I cannot reproduce. After I close the explorer, the current working directory is still the one set when inside explorer.
That said, the neovim part of your dotfiles have been updated 6 months ago. The behavior you describe is consistent with mini.misc,
setup_auto_root. Perhaps you started using that, or a similar plugin?