Added telescope extensions

This commit is contained in:
Alejandro Angulo 2024-07-25 20:35:03 -07:00
parent d3aa2d0800
commit cf0bb60e0f
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 34 additions and 1 deletions

View file

@ -7,6 +7,7 @@
./plugins/lsp.nix ./plugins/lsp.nix
./plugins/lualine.nix ./plugins/lualine.nix
./plugins/rhubarb.nix ./plugins/rhubarb.nix
./plugins/telescope.nix
./plugins/vim-obsession.nix ./plugins/vim-obsession.nix
]; ];
@ -61,7 +62,6 @@
]; ];
plugins = { plugins = {
telescope.enable = true;
treesitter.enable = true; treesitter.enable = true;
tmux-navigator.enable = true; tmux-navigator.enable = true;
fugitive.enable = true; fugitive.enable = true;

View file

@ -0,0 +1,33 @@
{
plugins.telescope = {
enable = true;
extensions = {
file-browser = {
enable = true;
settings = {
hijack_netrw = true;
};
};
frecency.enable = true;
};
};
keymaps = [
{
action = "<cmd>Telescope frecency<CR>";
key = "<leader>f";
}
{
action = "<cmd>Telescope live_grep<CR>";
key = "<leader>g";
}
{
action = "<cmd>Telescope file_browser path=%:p:h select_buffer=true<CR>";
key = "<leader>b";
}
{
action = "<cmd>Telescope file_browser<CR>";
key = "<leader>B";
}
];
}