mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-12 16:35:30 +00:00
telescope: correctly nest pickers under setupOpts
Applies the following fixes: - Correctly nests "pickers" config under "telescope.setupOpts" - Correctly nests "find_command" config under "telescope.setupOpts.pickers.find_files" - Sets the find_command to mimic pre-fix behavior with "fd --type=file"
This commit is contained in:
parent
05489d95b6
commit
29a4f7183a
2 changed files with 14 additions and 5 deletions
|
|
@ -280,3 +280,11 @@
|
||||||
[Sc3l3t0n](https://github.com/Sc3l3t0n):
|
[Sc3l3t0n](https://github.com/Sc3l3t0n):
|
||||||
|
|
||||||
- Add F# support under `vim.languages.fsharp`.
|
- Add F# support under `vim.languages.fsharp`.
|
||||||
|
|
||||||
|
[tebuevd](https://github.com/tebuevd):
|
||||||
|
|
||||||
|
- Fix `pickers` configuration for `telescope` by nesting it under `setupOpts`
|
||||||
|
- Fix `find_command` configuration for `telescope` by nesting it under
|
||||||
|
`setupOpts.pickers.find_files`
|
||||||
|
- Update default `telescope.setupOpts.pickers.find_files.find_command` to only
|
||||||
|
include files (and therefore exclude directories from results)
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,12 @@
|
||||||
inherit (lib.nvim.binds) mkMappingOption;
|
inherit (lib.nvim.binds) mkMappingOption;
|
||||||
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
|
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
|
||||||
setupOptions = {
|
setupOptions = {
|
||||||
|
pickers.find_files.find_command = mkOption {
|
||||||
|
description = "cmd to use for finding files";
|
||||||
|
type = either (listOf str) luaInline;
|
||||||
|
default = ["${pkgs.fd}/bin/fd" "--type=file"];
|
||||||
|
};
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
vimgrep_arguments = mkOption {
|
vimgrep_arguments = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
|
|
@ -27,11 +33,6 @@
|
||||||
"--no-ignore"
|
"--no-ignore"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
pickers.find_command = mkOption {
|
|
||||||
description = "cmd to use for finding files";
|
|
||||||
type = either (listOf str) luaInline;
|
|
||||||
default = ["${pkgs.fd}/bin/fd"];
|
|
||||||
};
|
|
||||||
prompt_prefix = mkOption {
|
prompt_prefix = mkOption {
|
||||||
description = "Shown in front of Telescope's prompt";
|
description = "Shown in front of Telescope's prompt";
|
||||||
type = str;
|
type = str;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue