nixvim(telescope): file-browser starts in directory of current file, not current directory

This commit is contained in:
Khaïs COLIN 2024-08-07 18:15:27 +02:00
parent 3ff0d7258d
commit 60ebf4fb6d

View file

@ -1,7 +1,12 @@
{
plugins.telescope = {
enable = true;
extensions.file-browser.enable = true;
extensions.file-browser = {
enable = true;
# explanation: see :help expand
# % is current file path, :p is full, :h is head (last component removed)
settings.cwd.__raw = "'%:p:h'";
};
settings.defaults.mappings = {
i = {
# close telescope when escape pressed in insert mode