nixvim-config/config/plugins/telescope.nix

44 lines
934 B
Nix
Raw Normal View History

2024-07-26 03:35:03 +00:00
{
plugins.telescope = {
enable = true;
extensions = {
file-browser = {
enable = true;
settings = {
hijack_netrw = true;
};
};
};
2024-08-03 05:39:35 +00:00
settings.defaults.mappings = {
"i" = {
"<C-n>" = {__raw = "require('telescope.actions').cycle_history_next";};
"<C-p>" = {__raw = "require('telescope.actions').cycle_history_prev";};
};
};
2024-07-26 03:35:03 +00:00
};
2024-11-17 00:27:29 +00:00
plugins.web-devicons.enable = true;
2024-07-26 03:35:03 +00:00
keymaps = [
{
2024-07-27 15:35:02 +00:00
action = "<cmd>Telescope find_files<CR>";
2024-07-26 03:35:03 +00:00
key = "<leader>f";
}
{
action = "<cmd>Telescope live_grep<CR>";
key = "<leader>g";
}
2024-08-06 16:41:41 +00:00
{
action = "<cmd>Telescope buffers<CR>";
key = "<leader>u";
}
2024-07-26 03:35:03 +00:00
{
action = "<cmd>Telescope file_browser path=%:p:h select_buffer=true<CR>";
key = "<leader>b";
}
{
action = "<cmd>Telescope file_browser<CR>";
key = "<leader>B";
}
];
}