added telescope etc. to nvim
This commit is contained in:
parent
17e8c76c98
commit
c87a485374
2 changed files with 18 additions and 0 deletions
|
@ -8,3 +8,10 @@ vim.keymap.set('n', '<C-j>', '<C-w>j')
|
||||||
vim.keymap.set('n', '<C-k>', '<C-w>k')
|
vim.keymap.set('n', '<C-k>', '<C-w>k')
|
||||||
vim.keymap.set('n', '<C-h>', '<C-w>h')
|
vim.keymap.set('n', '<C-h>', '<C-w>h')
|
||||||
vim.keymap.set('n', '<C-l>', '<C-w>l')
|
vim.keymap.set('n', '<C-l>', '<C-w>l')
|
||||||
|
|
||||||
|
-- telescope keymaps
|
||||||
|
local builtin = require('telescope.builtin')
|
||||||
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
||||||
|
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
|
||||||
|
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
|
||||||
|
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
|
||||||
|
|
|
@ -36,6 +36,17 @@ return require('packer').startup(function(use)
|
||||||
use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"}}
|
use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"}}
|
||||||
use 'mfussenegger/nvim-lint'
|
use 'mfussenegger/nvim-lint'
|
||||||
use 'mhartington/formatter.nvim'
|
use 'mhartington/formatter.nvim'
|
||||||
|
|
||||||
|
use 'nvim-lua/plenary.nvim'
|
||||||
|
use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }
|
||||||
|
use {
|
||||||
|
'nvim-telescope/telescope.nvim', tag = '0.1.5',
|
||||||
|
requires = { {'nvim-lua/plenary.nvim'} }
|
||||||
|
}
|
||||||
|
use {
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
run = ':TSUpdate'
|
||||||
|
}
|
||||||
|
|
||||||
-- Automatically set up your configuration after cloning packer.nvim
|
-- Automatically set up your configuration after cloning packer.nvim
|
||||||
-- Put this at the end after all plugins
|
-- Put this at the end after all plugins
|
||||||
|
|
Loading…
Reference in a new issue