plugin/explorer: add telescope nvim plugin
This commit is contained in:
parent
4354e3ce00
commit
3f758841b5
2 changed files with 14 additions and 3 deletions
|
@ -1,7 +1,11 @@
|
||||||
{ nvim-tree-lua, ... }:
|
{ nvim-tree-lua, telescope-nvim, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
luaConfig = builtins.readFile ./nvim-tree.lua;
|
luaConfig = (builtins.readFile ./nvim-tree.lua)
|
||||||
|
+ (builtins.readFile ./telescope-nvim.lua);
|
||||||
|
|
||||||
plugins = [ nvim-tree-lua ];
|
plugins = [
|
||||||
|
nvim-tree-lua
|
||||||
|
telescope-nvim
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
7
plugins/explorer/telescope-nvim.lua
Normal file
7
plugins/explorer/telescope-nvim.lua
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
-- See: https://github.com/nvim-telescope/telescope.nvim
|
||||||
|
require("telescope").setup({})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>ff", "<Cmd>Telescope find_files<CR>")
|
||||||
|
vim.keymap.set("n", "<leader>fg", "<Cmd>Telescope live_grep<CR>")
|
||||||
|
vim.keymap.set("n", "<leader>fb", "<Cmd>Telescope buffers<CR>")
|
||||||
|
vim.keymap.set("n", "<leader>fh", "<Cmd>Telescope help_tags<CR>")
|
Reference in a new issue