nixvim/config/telescope.nix

30 lines
530 B
Nix

{ 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";
};
}
{
mode = [ "n" "i" ];
key = "<C-S-p>";
action = helpers.mkRaw ''
function()
require("telescope.builtin").help_tags()
end
'';
}
];
}