Add telescope plugin to neovim

main
Jasper Bok 2024-02-27 18:12:35 +01:00
parent 0a132c2628
commit 9c83b4f6ca
1 changed files with 10 additions and 0 deletions

View File

@ -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 <C-p> :FZF<CR>")
-- Telescope
-- ------------------
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, {})
-- nnn
-- ------------------