mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
Merge 079b93bee1
into c6051305e5
This commit is contained in:
commit
500f7d0535
3 changed files with 74 additions and 0 deletions
|
@ -147,6 +147,7 @@ in
|
|||
];
|
||||
yazi.default = "yazi";
|
||||
yq.default = "yq";
|
||||
zf.default = "zf";
|
||||
zk.default = "zk";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
./project.nix
|
||||
./ui-select.nix
|
||||
./undo.nix
|
||||
./zf-native.nix
|
||||
./zoxide.nix
|
||||
];
|
||||
}
|
||||
|
|
72
plugins/by-name/telescope/extensions/zf-native.nix
Normal file
72
plugins/by-name/telescope/extensions/zf-native.nix
Normal file
|
@ -0,0 +1,72 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib.nixvim) defaultNullOpts;
|
||||
mkExtension = import ./_mk-extension.nix;
|
||||
in
|
||||
mkExtension {
|
||||
name = "zf-native";
|
||||
extensionName = "zf-native";
|
||||
package = "telescope-zf-native-nvim";
|
||||
|
||||
settingsOptions = {
|
||||
file = {
|
||||
enable = defaultNullOpts.mkBool true ''
|
||||
Override default telescope file sorter.
|
||||
'';
|
||||
highlight_results = defaultNullOpts.mkBool true ''
|
||||
Highlight matching text in results.
|
||||
'';
|
||||
match_filename = defaultNullOpts.mkBool true ''
|
||||
Enable zf filename match priority.
|
||||
'';
|
||||
initial_sort = defaultNullOpts.mkBool null ''
|
||||
Optional function to define a sort order when the query is empty.
|
||||
'';
|
||||
smart_case = defaultNullOpts.mkBool true ''
|
||||
Set to false to enable case sensitive matching.
|
||||
'';
|
||||
};
|
||||
|
||||
generic = {
|
||||
enable = defaultNullOpts.mkBool true ''
|
||||
Override default telescope generic item sorter.
|
||||
'';
|
||||
highlight_results = defaultNullOpts.mkBool true ''
|
||||
Highlight matching text in results.
|
||||
'';
|
||||
match_filename = defaultNullOpts.mkBool false ''
|
||||
Disable zf filename match priority.
|
||||
'';
|
||||
initial_sort = defaultNullOpts.mkBool null ''
|
||||
Optional function to define a sort order when the query is empty.
|
||||
'';
|
||||
smart_case = defaultNullOpts.mkBool true ''
|
||||
Set to false to enable case sensitive matching.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
file = {
|
||||
enable = true;
|
||||
highlight_results = true;
|
||||
match_filename = true;
|
||||
initial_sort = null;
|
||||
smart_case = true;
|
||||
};
|
||||
generic = {
|
||||
enable = true;
|
||||
highlight_results = true;
|
||||
match_filename = false;
|
||||
initial_sort = null;
|
||||
smart_case = true;
|
||||
};
|
||||
};
|
||||
|
||||
dependencies = [ "zf" ];
|
||||
|
||||
extraConfig = cfg: {
|
||||
# zf-native shared binaries
|
||||
performance.combinePlugins.pathsToLink = [ "/lib" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue