vimrc: use telescope instead of fzf

This commit is contained in:
Gabriel Ebner 2021-05-30 10:58:23 +02:00
parent ddce6c056d
commit cef8ba662b

24
vimrc

@ -11,9 +11,6 @@ Plug 'chrisbra/Recover.vim'
Plug 'Shougo/vimproc.vim' , { 'do': 'make -f make_unix.mak' }
Plug 'junegunn/fzf', { 'dir': '~/.fzf' }
Plug 'junegunn/fzf.vim'
Plug 'ciaranm/securemodelines'
Plug 'chrisbra/SudoEdit.vim'
@ -124,6 +121,15 @@ Plug 'neovim/nvim-lspconfig'
Plug 'folke/lua-dev.nvim'
Plug 'simrat39/rust-tools.nvim'
Plug 'nvim-lua/popup.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
else
Plug 'junegunn/fzf', { 'dir': '~/.fzf' }
Plug 'junegunn/fzf.vim'
endif
call plug#end()
@ -191,8 +197,6 @@ au syntax tex syn region texZone start="\\begin{tacticsoutput}" end="\\end{tacti
" disable annoying "file is read-only" warnings
au FileChangedRO * set noreadonly
nnoremap <c-p> :FZF<cr>
if has('nvim-0.5')
lua <<EOF
require('lean').setup{
@ -332,6 +336,16 @@ nnoremap ]d <cmd>lua vim.lsp.diagnostic.goto_next()<CR>
nnoremap <space>q <cmd>lua vim.lsp.diagnostic.set_loclist()<CR>
nnoremap <space>f <cmd>lua vim.lsp.buf.formatting()<CR>
nnoremap <c-p> <cmd>Telescope find_files<cr>
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
else
nnoremap <c-p> :FZF<cr>
endif
let g:tex_flavor = 'latex'