nixvim/config/telescope.nix

36 lines
574 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").live_grep()
end
'';
}
];
}