nixvim(ui): install telescope
This commit is contained in:
parent
b6a0ecae2d
commit
d3e9ba862c
4 changed files with 47 additions and 1 deletions
2
flake.lock
generated
2
flake.lock
generated
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,6 @@
|
||||||
opts = {
|
opts = {
|
||||||
number = true;
|
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