nixvim/config/telescope.nix

31 lines
530 B
Nix
Raw Permalink Normal View History

2024-08-20 05:43:03 +00:00
{ helpers, ... }:
{
plugins.telescope = {
enable = true;
};
keymaps = [
{
mode = [ "n" "i" ];
key = "<C-p>";
action = helpers.mkRaw ''
function()
require("telescope.builtin").find_files()
end
'';
options = {
desc = "Find files with telescope";
};
}
2024-08-22 03:51:15 +00:00
{
mode = [ "n" "i" ];
key = "<C-S-p>";
action = helpers.mkRaw ''
function()
require("telescope.builtin").help_tags()
end
'';
}
2024-08-20 05:43:03 +00:00
];
}