From c87a4853747313998ac72f50a091cf8860d66c1f Mon Sep 17 00:00:00 2001 From: MikeG Date: Sat, 30 Dec 2023 12:58:14 -0500 Subject: [PATCH] added telescope etc. to nvim --- .config/nvim/lua/user/keymaps.lua | 7 +++++++ .config/nvim/lua/user/plugins.lua | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/.config/nvim/lua/user/keymaps.lua b/.config/nvim/lua/user/keymaps.lua index b4d12c6..5b4035d 100644 --- a/.config/nvim/lua/user/keymaps.lua +++ b/.config/nvim/lua/user/keymaps.lua @@ -8,3 +8,10 @@ vim.keymap.set('n', '', 'j') vim.keymap.set('n', '', 'k') vim.keymap.set('n', '', 'h') vim.keymap.set('n', '', 'l') + +-- telescope keymaps +local builtin = require('telescope.builtin') +vim.keymap.set('n', 'ff', builtin.find_files, {}) +vim.keymap.set('n', 'fg', builtin.live_grep, {}) +vim.keymap.set('n', 'fb', builtin.buffers, {}) +vim.keymap.set('n', 'fh', builtin.help_tags, {}) diff --git a/.config/nvim/lua/user/plugins.lua b/.config/nvim/lua/user/plugins.lua index 4365618..b7b65c2 100644 --- a/.config/nvim/lua/user/plugins.lua +++ b/.config/nvim/lua/user/plugins.lua @@ -36,6 +36,17 @@ return require('packer').startup(function(use) use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"}} use 'mfussenegger/nvim-lint' 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 -- Put this at the end after all plugins