Compare commits

...

3 commits

Author SHA1 Message Date
raf
8a1c7112f7
Merge branch 'main' into lua-lint-and-format-support 2025-03-31 03:07:01 +00:00
tebuevd
fa7fb83315
Merge pull request #760 from tebuevd/fix-telescope-pickers-config
telescope: correctly nest pickers under setupOpts
2025-03-31 03:04:48 +00:00
raf
1a2789ca80
Update rl-0.8.md 2025-03-31 02:55:57 +00:00
2 changed files with 15 additions and 6 deletions

View file

@ -286,4 +286,12 @@
[venkyr77](https://github.com/venkyr77): [venkyr77](https://github.com/venkyr77):
- Add lint(luacheck), format(stylua) support for lua. - Add lint (luacheck) and formatting (stylua) support for Lua.
[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)

View file

@ -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;