diff options
Diffstat (limited to '.config/nvim/lua')
-rw-r--r-- | .config/nvim/lua/binds.lua | 6 | ||||
-rw-r--r-- | .config/nvim/lua/plugins.lua | 7 |
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 { |