nixvim(ui): install telescope

This commit is contained in:
Khaïs COLIN 2024-07-27 18:18:33 +02:00
parent b6a0ecae2d
commit d3e9ba862c
4 changed files with 47 additions and 1 deletions

2
flake.lock generated
View file

@ -315,7 +315,7 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-4s8+JKzXZzf25pCk5H0Kc67AbCuBuaTsTezlqiJzFrs=", "narHash": "sha256-kRVJE3Cq+6Uaw7lnjHbwZ16gqiFm+MG7X/YMFXJKK7I=",
"path": "./nixvim", "path": "./nixvim",
"type": "path" "type": "path"
}, },

View file

@ -8,6 +8,7 @@
# appearence # appearence
./bufferline.nix ./bufferline.nix
./lualine.nix ./lualine.nix
./telescope.nix
# language support & lsp # language support & lsp
./lsp.nix ./lsp.nix

View file

@ -2,4 +2,6 @@
opts = { opts = {
number = true; number = true;
}; };
globals.mapleader = " ";
} }

View file

@ -0,0 +1,43 @@
{
plugins.telescope = {
enable = true;
keymaps = {
"<leader><space>" = {
action = "find_files";
options = {
desc = "Find files in current directory";
};
};
"<leader>f" = {
action = "find_files";
options = {
desc = "Find files in current directory";
};
};
"<leader>/" = {
action = "live_grep";
options = {
desc = "Grep (root dir)";
};
};
"<leader>b" = {
action = "buffers";
options = {
desc = "Buffer list";
};
};
"<leader>fr" = {
action = "oldfiles";
options = {
desc = "Recent files";
};
};
"<leader>sD" = {
action = "diagnostics";
options = {
desc = "Workspace diagnostics";
};
};
};
};
}