2024-06-03 11:05:46 +01:00
|
|
|
{
|
|
|
|
programs.nixvim.plugins.telescope = {
|
|
|
|
enable = true;
|
|
|
|
extensions.fzy-native.enable = true;
|
|
|
|
};
|
2024-11-12 18:21:15 +00:00
|
|
|
programs.nixvim.keymaps = [
|
2024-11-12 17:03:53 +00:00
|
|
|
{
|
|
|
|
# find files
|
|
|
|
mode = ["n"];
|
|
|
|
key = "<Leader>ff";
|
|
|
|
action = "<cmd>Telescope find_files<CR>";
|
|
|
|
options = {noremap = true;};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# live grep
|
|
|
|
mode = ["n"];
|
|
|
|
key = "<Leader>fg";
|
|
|
|
action = "<cmd>Telescope live_grep<CR>";
|
|
|
|
options = {noremap = true;};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# grep string under cursor
|
|
|
|
mode = ["n"];
|
|
|
|
key = "<Leader>fs";
|
2024-11-18 19:04:13 +00:00
|
|
|
action = "<cmd>Telescope grep_string<CR>";
|
2024-11-12 17:03:53 +00:00
|
|
|
options = {noremap = true;};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# buffers
|
|
|
|
mode = ["n"];
|
|
|
|
key = "<Leader>fb";
|
|
|
|
action = "<cmd>Telescope buffers<CR>";
|
|
|
|
options = {noremap = true;};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# help tags
|
|
|
|
mode = ["n"];
|
|
|
|
key = "<Leader>fh";
|
|
|
|
action = "<cmd>Telescope help_tags<CR>";
|
|
|
|
options = {noremap = true;};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
# show recently opened files
|
|
|
|
mode = ["n"];
|
|
|
|
key = "<Leader>fo";
|
|
|
|
action = "<cmd>Telescope oldfiles<CR>";
|
|
|
|
options = {noremap = true;};
|
|
|
|
}
|
|
|
|
];
|
2024-06-03 11:05:46 +01:00
|
|
|
}
|