nixvim(telescope): file-browser starts in directory of current file, not current directory
This commit is contained in:
parent
3ff0d7258d
commit
60ebf4fb6d
1 changed files with 6 additions and 1 deletions
|
|
@ -1,7 +1,12 @@
|
||||||
{
|
{
|
||||||
plugins.telescope = {
|
plugins.telescope = {
|
||||||
enable = true;
|
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 = {
|
settings.defaults.mappings = {
|
||||||
i = {
|
i = {
|
||||||
# close telescope when escape pressed in insert mode
|
# close telescope when escape pressed in insert mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue