From 2d10ca018aff55e2af9cc5727003c4b3382210eb Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Wed, 6 Oct 2021 22:26:28 +0200 Subject: nvim setup simple file explorer bind + telescope binds --- .config/nvim/lua/binds.lua | 6 ++++++ .config/nvim/lua/plugins.lua | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/binds.lua b/.config/nvim/lua/binds.lua index 72cd58e..aebde65 100644 --- a/.config/nvim/lua/binds.lua +++ b/.config/nvim/lua/binds.lua @@ -13,6 +13,7 @@ map('n', 'h', ':wincmd h', opts) map('n', 'j', ':wincmd j', opts) map('n', 'k', ':wincmd k', opts) map('n', 'l', ':wincmd l', opts) +map('n', 'pv', ':30Lex', opts) -- open simple file explorer map('i', 'kj', '', opts) map('i', ',', ',u', opts) @@ -21,6 +22,11 @@ map('i', '[', '[u', opts) map('i', '!', '!u', opts) map('i', '?', '?u', opts) +map('n', '', 'Telescope find_files', opts) +map('n', 'fg', 'Telescope live_grep', opts) +map('n', 'fb', 'Telescope buffers', opts) +map('n', 'fh', 'Telescope help_tags', opts) + map('n', 'fu', 'Telescope lsp_references', opts) map('n', 'gd', 'Telescope lsp_definitions', opts) map('n', 'rn', 'lua vim.lsp.buf.rename()', opts) diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index afcfa5d..87e57ce 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -16,7 +16,12 @@ return require('packer').startup(function() use { 'nvim-telescope/telescope.nvim', - requires = { {'nvim-lua/plenary.nvim'} } + requires = { + {'nvim-lua/popup.nvim'}, + {'nvim-lua/plenary.nvim'}, + {'nvim-telescope/telescope-fzy-native.nvim'}, + {'BurntSushi/ripgrep'} + } } use { -- cgit v1.2.3-70-g09d2