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 -- ------------------