Add back telescope

This commit is contained in:
Daniel Lynn 2021-10-20 10:21:22 -05:00
parent cf3195bf23
commit 578f785262
Signed by: daniel
GPG Key ID: 28496A140E180A9D
3 changed files with 14 additions and 2 deletions

View File

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

4
nvim/telescope.vimrc Normal file
View File

@ -0,0 +1,4 @@
nnoremap <leader>ff <cmd>lua require('telescope.builtin').find_files()<cr>
nnoremap <leader>fg <cmd>lua require('telescope.builtin').live_grep()<cr>
nnoremap <leader>fb <cmd>lua require('telescope.builtin').buffers()<cr>
nnoremap <leader>fh <cmd>lua require('telescope.builtin').help_tags()<cr>

5
vimrc
View File

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