nixvim(ui): install telescope
This commit is contained in:
parent
b6a0ecae2d
commit
d3e9ba862c
4 changed files with 47 additions and 1 deletions
|
|
@ -8,6 +8,7 @@
|
|||
# appearence
|
||||
./bufferline.nix
|
||||
./lualine.nix
|
||||
./telescope.nix
|
||||
|
||||
# language support & lsp
|
||||
./lsp.nix
|
||||
|
|
|
|||
|
|
@ -2,4 +2,6 @@
|
|||
opts = {
|
||||
number = true;
|
||||
};
|
||||
|
||||
globals.mapleader = " ";
|
||||
}
|
||||
|
|
|
|||
43
nixvim/config/telescope.nix
Normal file
43
nixvim/config/telescope.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue