summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2021-10-06 22:26:28 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2021-10-06 22:26:28 +0200
commit2d10ca018aff55e2af9cc5727003c4b3382210eb (patch)
tree40c5010e40768561b4f1e70909ce7c0f14015a74
parent41a4234947f3bce693b14c398264414fe5143baf (diff)
nvim setup simple file explorer bind + telescope binds
-rw-r--r--.config/nvim/lua/binds.lua6
-rw-r--r--.config/nvim/lua/plugins.lua7
2 files changed, 12 insertions, 1 deletions
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', '<leader>h', ':wincmd h<CR>', opts)
map('n', '<leader>j', ':wincmd j<CR>', opts)
map('n', '<leader>k', ':wincmd k<CR>', opts)
map('n', '<leader>l', ':wincmd l<CR>', opts)
+map('n', '<leader>pv', ':30Lex<CR>', opts) -- open simple file explorer
map('i', 'kj', '<Esc>', opts)
map('i', ',', ',<c-g>u', opts)
@@ -21,6 +22,11 @@ map('i', '[', '[<c-g>u', opts)
map('i', '!', '!<c-g>u', opts)
map('i', '?', '?<c-g>u', opts)
+map('n', '<C-p>', '<cmd>Telescope find_files<cr>', opts)
+map('n', '<leader>fg', '<cmd>Telescope live_grep<cr>', opts)
+map('n', '<leader>fb', '<cmd>Telescope buffers<cr>', opts)
+map('n', '<leader>fh', '<cmd>Telescope help_tags<cr>', opts)
+
map('n', '<leader>fu', '<cmd>Telescope lsp_references<cr>', opts)
map('n', '<leader>gd', '<cmd>Telescope lsp_definitions<cr>', opts)
map('n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<cr>', 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 {