From 9c83b4f6ca2223df457c69f725b957bef5ed9282 Mon Sep 17 00:00:00 2001 From: Jasper Bok Date: Tue, 27 Feb 2024 18:12:35 +0100 Subject: [PATCH] Add telescope plugin to neovim --- private_dot_config/nvim/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/private_dot_config/nvim/init.lua b/private_dot_config/nvim/init.lua index a3ff28f..9aa3c54 100644 --- a/private_dot_config/nvim/init.lua +++ b/private_dot_config/nvim/init.lua @@ -100,6 +100,8 @@ local Plug = vim.fn["plug#"] vim.call("plug#begin", "~/.config/nvim/plugged") +Plug('nvim-lua/plenary.nvim') -- Requirement for telescope. +Plug('nvim-telescope/telescope.nvim', {tag = '0.1.5' }) Plug('numToStr/Comment.nvim') Plug('junegunn/fzf') Plug('arcticicestudio/nord-vim') @@ -125,6 +127,14 @@ require("Comment").setup() -- ------------------ vim.cmd("nnoremap :FZF") +-- Telescope +-- ------------------ +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, {}) + -- nnn -- ------------------