1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-24 09:51:00 +01:00

plugins/telescope: normalize plugin defaults

This commit is contained in:
Matt Sturgeon 2024-06-11 17:12:25 +01:00
parent 6ab2a39e6a
commit 66b23fff80
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 27 additions and 35 deletions

View file

@ -83,12 +83,12 @@ telescopeHelpers.mkExtension {
Custom theme, will use your global theme by default.
'';
path = helpers.defaultNullOpts.mkStr ''{__raw = "vim.loop.cwd()";}'' ''
path = helpers.defaultNullOpts.mkStr { __raw = "vim.loop.cwd()"; } ''
Directory to browse files from.
`vim.fn.expanded` automatically.
'';
cwd = helpers.defaultNullOpts.mkStr ''{__raw = "vim.loop.cwd()";}'' ''
cwd = helpers.defaultNullOpts.mkStr { __raw = "vim.loop.cwd()"; } ''
Directory to browse folders from.
`vim.fn.expanded` automatically.
'';
@ -134,12 +134,10 @@ telescopeHelpers.mkExtension {
};
})
)
''
{
file_browser = false;
folder_browser = false;
}
''
{
file_browser = false;
folder_browser = false;
}
"Determines whether to show hidden files or not.";
respect_gitignore = helpers.defaultNullOpts.mkBool false ''
@ -170,13 +168,11 @@ telescopeHelpers.mkExtension {
Change the highlight group of dir icon.
'';
display_stat = helpers.defaultNullOpts.mkAttrsOf types.anything ''
{
date = true;
size = true;
mode = true;
}
'' "Ordered stat; see upstream for more info.";
display_stat = helpers.defaultNullOpts.mkAttrsOf types.anything {
date = true;
size = true;
mode = true;
} "Ordered stat; see upstream for more info.";
hijack_netrw = helpers.defaultNullOpts.mkBool false ''
Use telescope file browser when opening directory paths.