From cef8ba662bec9e17bd6742fff51a2a0c7d224ac6 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sun, 30 May 2021 10:58:23 +0200 Subject: [PATCH] vimrc: use telescope instead of fzf --- vimrc | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/vimrc b/vimrc index 0b54fac..a79c81a 100644 --- a/vimrc +++ b/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 :FZF - if has('nvim-0.5') lua <lua vim.lsp.diagnostic.goto_next() nnoremap q lua vim.lsp.diagnostic.set_loclist() nnoremap f lua vim.lsp.buf.formatting() +nnoremap Telescope find_files +nnoremap ff Telescope find_files +nnoremap fg Telescope live_grep +nnoremap fb Telescope buffers +nnoremap fh Telescope help_tags + +else + +nnoremap :FZF + endif let g:tex_flavor = 'latex'