plugin/explorer: add telescope nvim plugin

This commit is contained in:
Dmitriy Pleshevskiy 2022-09-18 16:54:56 +03:00
parent 4354e3ce00
commit 3f758841b5
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 14 additions and 3 deletions

View file

@ -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
];
} }

View 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>")