From 578f7852629aa33cb1e18519afff085c7657db3d Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Wed, 20 Oct 2021 10:21:22 -0500 Subject: [PATCH] Add back telescope --- nvim/plugins.vimrc | 7 +++++-- nvim/telescope.vimrc | 4 ++++ vimrc | 5 +++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 nvim/telescope.vimrc diff --git a/nvim/plugins.vimrc b/nvim/plugins.vimrc index 9c87291..9423a11 100644 --- a/nvim/plugins.vimrc +++ b/nvim/plugins.vimrc @@ -5,6 +5,7 @@ Plug 'jiangmiao/auto-pairs' Plug 'leafgarland/typescript-vim', { 'for': 'typescript' } Plug 'leafoftree/vim-svelte-plugin', { 'for': 'svelte' } Plug 'lukas-reineke/indent-blankline.nvim' +Plug 'nvim-lua/plenary.nvim' Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'posva/vim-vue', { 'for': 'vue' } Plug 'ron-rs/ron.vim', { 'for': 'ron' } @@ -27,8 +28,10 @@ Plug 'neovim/nvim-lspconfig' | \ Plug 'rafamadriz/friendly-snippets' " Gitsigns -Plug 'nvim-lua/plenary.nvim' | - \ Plug 'lewis6991/gitsigns.nvim' +Plug 'lewis6991/gitsigns.nvim' + +" Telescope +Plug 'nvim-telescope/telescope.nvim' " Lightline Plug 'itchyny/lightline.vim' | diff --git a/nvim/telescope.vimrc b/nvim/telescope.vimrc new file mode 100644 index 0000000..d381a22 --- /dev/null +++ b/nvim/telescope.vimrc @@ -0,0 +1,4 @@ +nnoremap ff lua require('telescope.builtin').find_files() +nnoremap fg lua require('telescope.builtin').live_grep() +nnoremap fb lua require('telescope.builtin').buffers() +nnoremap fh lua require('telescope.builtin').help_tags() diff --git a/vimrc b/vimrc index 05ca9ca..699d693 100644 --- a/vimrc +++ b/vimrc @@ -88,6 +88,11 @@ if filereadable(expand("~/.config/nvim/gitsigns.vimrc")) source ~/.config/nvim/gitsigns.vimrc endif +" Telescope setup +if filereadable(expand("~/.config/nvim/telescope.vimrc")) + source ~/.config/nvim/telescope.vimrc +endif + " Lightline setup if filereadable(expand("~/.config/nvim/lightline.vimrc")) source ~/.config/nvim/lightline.vimrc